Commit b1c162ae authored by Laurent Montel's avatar Laurent Montel 😁

Fix dbus call

parent 6c5f464a
......@@ -116,9 +116,11 @@ void CollectionMaintenancePage::slotReindexCollection()
if (mCurrentCollection.isValid()) {
//Don't allow to reindex twice.
mReindexCollection->setEnabled(false);
QDBusInterface interfaceBalooIndexer(QStringLiteral("org.freedesktop.Akonadi.Agent.akonadi_indexing_agent"), QStringLiteral("/"));
QDBusInterface interfaceBalooIndexer(QStringLiteral("org.freedesktop.Akonadi.Agent.akonadi_indexing_agent"), QStringLiteral("/"), QStringLiteral("org.freedesktop.Akonadi.Indexer"));
if (interfaceBalooIndexer.isValid()) {
interfaceBalooIndexer.call(QStringLiteral("reindexCollection"), QList<QVariant>() << (qlonglong)mCurrentCollection.id());
interfaceBalooIndexer.call(QStringLiteral("reindexCollection"), (qlonglong)mCurrentCollection.id());
mIndexedInfo->setText(i18n("Becareful indexing can take some minutes."));
} else {
qCWarning(KMAIL_LOG) << "indexer interface not valid";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment