Commit 21f0d6b8 authored by Laurent Montel's avatar Laurent Montel 😁

Use kidentitymanager singleton

parent b75afd52
......@@ -71,7 +71,7 @@ NewMailNotifierAgent::NewMailNotifierAgent(const QString &id)
Akonadi::AttributeFactory::registerAttribute<Akonadi::NewMailNotifierAttribute>();
new NewMailNotifierAdaptor(this);
mIdentityManager = new KIdentityManagement::IdentityManager(true, this);
mIdentityManager = KIdentityManagement::IdentityManager::self();
connect(mIdentityManager, SIGNAL(changed()), SLOT(slotIdentitiesChanged()));
slotIdentitiesChanged();
mDefaultPixmap = QIcon::fromTheme(QStringLiteral("kmail")).pixmap(KIconLoader::SizeMedium, KIconLoader::SizeMedium);
......
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