Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/collectionmaintenancepage.cpp
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Line(s) | 93 | { | |||
---|---|---|---|---|---|
124 | } | 124 | } | ||
125 | } | 125 | } | ||
126 | 126 | | |||
127 | void CollectionMaintenancePage::load(const Collection &col) | 127 | void CollectionMaintenancePage::load(const Collection &col) | ||
128 | { | 128 | { | ||
129 | init(col); | 129 | init(col); | ||
130 | if (col.isValid()) { | 130 | if (col.isValid()) { | ||
131 | d->updateLabel(col.statistics().count(), col.statistics().unreadCount(), col.statistics().size()); | 131 | d->updateLabel(col.statistics().count(), col.statistics().unreadCount(), col.statistics().size()); | ||
132 | Akonadi::IndexPolicyAttribute *attr = col.attribute<Akonadi::IndexPolicyAttribute>(); | 132 | const Akonadi::IndexPolicyAttribute *attr = col.attribute<Akonadi::IndexPolicyAttribute>(); | ||
133 | const bool indexingWasEnabled(!attr || attr->indexingEnabled()); | 133 | const bool indexingWasEnabled(!attr || attr->indexingEnabled()); | ||
134 | d->ui.enableIndexingChkBox->setChecked(indexingWasEnabled); | 134 | d->ui.enableIndexingChkBox->setChecked(indexingWasEnabled); | ||
135 | if (indexingWasEnabled) { | 135 | if (indexingWasEnabled) { | ||
136 | const auto service = ServerManager::agentServiceName(ServerManager::Agent, QStringLiteral("akonadi_indexing_agent")); | 136 | const auto service = ServerManager::agentServiceName(ServerManager::Agent, QStringLiteral("akonadi_indexing_agent")); | ||
137 | QDBusInterface indexingAgentIface(service, | 137 | QDBusInterface indexingAgentIface(service, | ||
138 | QStringLiteral("/"), | 138 | QStringLiteral("/"), | ||
139 | QStringLiteral("org.freedesktop.Akonadi.Indexer")); | 139 | QStringLiteral("org.freedesktop.Akonadi.Indexer")); | ||
140 | if (indexingAgentIface.isValid()) { | 140 | if (indexingAgentIface.isValid()) { | ||
Show All 35 Lines |