Commit 44f523e9 authored by Laurent Montel's avatar Laurent Montel 😁

Add support for multi instance

parent 0b94967d
......@@ -43,7 +43,12 @@ public:
, mMonitor(new Akonadi::Monitor)
, mInitialized(false)
{
mMailFilterAgentInterface = new org::freedesktop::Akonadi::MailFilterAgent(QStringLiteral("org.freedesktop.Akonadi.MailFilterAgent"),
QString service = QStringLiteral("org.freedesktop.Akonadi.MailFilterAgent");
if (Akonadi::ServerManager::hasInstanceIdentifier()) {
service += QLatin1Char('.') + Akonadi::ServerManager::instanceIdentifier();
}
mMailFilterAgentInterface = new org::freedesktop::Akonadi::MailFilterAgent(service,
QStringLiteral("/MailFilterAgent"),
QDBusConnection::sessionBus(), q);
}
......
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