summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <[email protected]>2017-08-19 17:40:51 +0200
committerDaniel Vrátil <[email protected]>2017-08-19 17:40:58 +0200
commit75d327ce06a3a90e28622237d882fdcc0551952b (patch)
tree54fd645a7d3f8dd180e38c6c5f81d114ddf14ed5
parentec32c68ae1c32bd2dafc4cd41ff5442749596f73 (diff)
Use ServerManager to get Indexing Agent service name
-rw-r--r--src/pimcommonakonadi/util/mailutil.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pimcommonakonadi/util/mailutil.cpp b/src/pimcommonakonadi/util/mailutil.cpp
index 4aa59c6..db07c36 100644
--- a/src/pimcommonakonadi/util/mailutil.cpp
+++ b/src/pimcommonakonadi/util/mailutil.cpp
@@ -53,10 +53,6 @@ bool PimCommon::MailUtil::isImapFolder(const Akonadi::Collection &col, bool &isO
QString PimCommon::MailUtil::indexerServiceName()
{
- QLatin1String basename("org.freedesktop.Akonadi.Agent.akonadi_indexing_agent");
- if (Akonadi::ServerManager::hasInstanceIdentifier()) {
- return basename + QLatin1Char('.') + Akonadi::ServerManager::instanceIdentifier();
- } else {
- return basename;
- }
+ return Akonadi::ServerManager::agentServiceName(Akonadi::ServerManager::Agent,
+ QStringLiteral("akonadi_indexing_agent"));
}