summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2016-10-26 00:10:34 +0200
committerAleix Pol <[email protected]>2016-10-26 00:10:34 +0200
commit61206498fbaec7a744d483e76a497495533f745f (patch)
treec2b0a52075d76c702167899c9874a59bce829dff
parentafc78787a4cd20213da16d48ae40df3ffec9b85d (diff)
We need to filter further
We aren't ensuring that the results are filtered yet.
-rw-r--r--libdiscover/resources/StandardBackendUpdater.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiscover/resources/StandardBackendUpdater.cpp b/libdiscover/resources/StandardBackendUpdater.cpp
index b6310cf..c8b59d5 100644
--- a/libdiscover/resources/StandardBackendUpdater.cpp
+++ b/libdiscover/resources/StandardBackendUpdater.cpp
@@ -119,7 +119,9 @@ void StandardBackendUpdater::refreshUpdateable()
m_upgradeable.clear();
auto r = m_backend->search(f);
connect(r, &ResultsStream::resourcesFound, this, [this](const QVector<AbstractResource*> &resources){
- m_upgradeable.unite(resources.toList().toSet());
+ for(auto res : resources)
+ if (res->state() == AbstractResource::Upgradeable)
+ m_upgradeable.insert(res);
});
connect(r, &ResultsStream::destroyed, this, [this](){
m_settingUp = false;