summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2017-03-02 13:32:18 +0100
committerAleix Pol <[email protected]>2017-03-02 13:32:18 +0100
commit3928d93109f91f571b8f1e6707762e0a46bcf576 (patch)
treeeb2e30bcb3e0c9b656317e639e1a5515adf6ef6d
parentd0c5f012a019592f97654112f90e2c6de5ee6c4a (diff)
Adapt to changes in 5.9
-rw-r--r--libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp b/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
index e27eba8..1092398 100644
--- a/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
+++ b/libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
@@ -112,6 +112,7 @@ bool FlatpakSourcesBackend::listRepositories(FlatpakInstallation* installation)
it->setCheckState(flatpak_remote_get_disabled(remote) ? Qt::Unchecked : Qt::Checked);
it->setData(title.isEmpty() ? id : title, Qt::ToolTipRole);
it->setData(name(), AbstractSourcesBackend::SectionRole);
+ it->setData(QVariant::fromValue<QObject*>(this), AbstractSourcesBackend::SourcesBackend);
it->setFlatpakInstallation(installation);
m_sources->appendRow(it);