Make sure the unified mailbox dialog is only really shown once

Reviewers: mlaurent, dfaure

Reviewed By: dfaure

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D17010
wilder
Daniel Vrátil 7 years ago
parent 90e8b267da
commit cf6c1002e7
  1. 4
      src/kmmainwidget.cpp

@ -4825,6 +4825,8 @@ void KMMainWidget::setupUnifiedMailboxChecker()
return;
}
KMailSettings::self()->setAskEnableUnifiedMailboxes(false);
const auto service = Akonadi::ServerManager::self()->agentServiceName(Akonadi::ServerManager::Agent, QStringLiteral("akonadi_unifiedmailbox_agent"));
QDBusInterface iface(service, QStringLiteral("/"), QStringLiteral("org.freedesktop.Akonadi.UnifiedMailboxAgent"),
QDBusConnection::sessionBus(), this);
@ -4847,8 +4849,6 @@ void KMMainWidget::setupUnifiedMailboxChecker()
if (answer == KMessageBox::Yes) {
iface.call(QStringLiteral("setEnableAgent"), true);
}
KMailSettings::self()->setAskEnableUnifiedMailboxes(false);
};
connect(kmkernel, &KMKernel::incomingAccountsChanged, this, ask);

Loading…
Cancel
Save