Commit 3533b3e4 authored by Laurent Montel's avatar Laurent Montel 😁

Fix multi instance

parent 45d3537a
......@@ -170,7 +170,12 @@ QString AccountsPage::ReceivingTab::helpAnchor() const
AccountsPageReceivingTab::AccountsPageReceivingTab(QWidget *parent)
: ConfigModuleTab(parent)
{
mNewMailNotifierInterface = new OrgFreedesktopAkonadiNewMailNotifierInterface(QStringLiteral("org.freedesktop.Akonadi.NewMailNotifierAgent"),
QString service = QStringLiteral("org.freedesktop.Akonadi.NewMailNotifierAgent");
if (Akonadi::ServerManager::hasInstanceIdentifier()) {
service += QLatin1Char('.') + Akonadi::ServerManager::instanceIdentifier();
}
mNewMailNotifierInterface = new OrgFreedesktopAkonadiNewMailNotifierInterface(service,
QStringLiteral("/NewMailNotifierAgent"),
QDBusConnection::sessionBus(),
this);
......
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