aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-04 07:55:42 +0200
committerMontel Laurent <[email protected]>2017-08-04 07:55:59 +0200
commit946f90e966a6b8f8f555a67089b7178c937c6888 (patch)
tree6860f1beea7905d7b8bd22c1a75595c6fa3f5f74
parent42266a980ab1d9e9a640edf97597304e67908b94 (diff)
Minor
-rw-r--r--src/widgets/collectionmaintenancepage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/collectionmaintenancepage.cpp b/src/widgets/collectionmaintenancepage.cpp
index d9c5610..8c64f80 100644
--- a/src/widgets/collectionmaintenancepage.cpp
+++ b/src/widgets/collectionmaintenancepage.cpp
@@ -139,9 +139,7 @@ void CollectionMaintenancePage::load(const Collection &col)
Akonadi::IndexPolicyAttribute *attr = col.attribute<Akonadi::IndexPolicyAttribute>();
const bool indexingWasEnabled(!attr || attr->indexingEnabled());
d->ui.enableIndexingChkBox->setChecked(indexingWasEnabled);
- if (!indexingWasEnabled) {
- d->ui.indexedCountLbl->hide();
- } else {
+ if (indexingWasEnabled) {
const auto service = ServerManager::agentServiceName(ServerManager::Agent, QStringLiteral("akonadi_indexing_agent"));
QDBusInterface indexingAgentIface(service,
QStringLiteral("/"),
@@ -167,6 +165,8 @@ void CollectionMaintenancePage::load(const Collection &col)
qCDebug(AKONADIWIDGETS_LOG) << "Failed to obtain Indexer interface";
d->ui.indexedCountLbl->hide();
}
+ } else {
+ d->ui.indexedCountLbl->hide();
}
}
}