summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2016-12-22 17:36:00 +0100
committerAleix Pol <[email protected]>2016-12-22 17:36:00 +0100
commit9fc1aba7f833746bb57975090f9741bbb0c7502b (patch)
tree0da7d425812a68db7530d1573468d576cc86e6e6
parent2054b9750c06900c339c259d265544d7d69b6eff (diff)
Don't set a reviews provider if there's none
-rw-r--r--libdiscover/backends/KNSBackend/KNSReviews.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiscover/backends/KNSBackend/KNSReviews.cpp b/libdiscover/backends/KNSBackend/KNSReviews.cpp
index d725066..51eb8cf 100644
--- a/libdiscover/backends/KNSBackend/KNSReviews.cpp
+++ b/libdiscover/backends/KNSBackend/KNSReviews.cpp
@@ -169,7 +169,7 @@ QString KNSReviews::userName() const
void KNSReviews::setProviderUrl(const QUrl& url)
{
m_providerUrl = url;
- if(!s_shared->atticaManager.providerFiles().contains(url)) {
+ if(!m_providerUrl.isEmpty() && !s_shared->atticaManager.providerFiles().contains(url)) {
s_shared->atticaManager.addProviderFile(url);
}
}