summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-07-07 13:52:40 +0200
committerMontel Laurent <[email protected]>2017-07-07 13:52:40 +0200
commit0445c78d38b7dae7cd7c3e15362c8ea2c6296ecf (patch)
treef96907ed21b3b1e8e4919b7202dd02870bbcf9f6
parent0fd046fafcd109ea028a5e0c121ceea4b04170b6 (diff)
use identitymanager singleton
-rw-r--r--src/kontactplugin/summary/summaryview_part.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kontactplugin/summary/summaryview_part.cpp b/src/kontactplugin/summary/summaryview_part.cpp
index a3a0db1..4cf2777 100644
--- a/src/kontactplugin/summary/summaryview_part.cpp
+++ b/src/kontactplugin/summary/summaryview_part.cpp
@@ -120,8 +120,7 @@ void SummaryViewPart::updateWidgets()
delete mFrame;
- KIdentityManagement::IdentityManager idm(true, this);
- const KIdentityManagement::Identity &id = idm.defaultIdentity();
+ const KIdentityManagement::Identity &id = KIdentityManagement::IdentityManager::self()->defaultIdentity();
QString currentUser = i18n("Summary for %1", id.fullName());
mUsernameLabel->setText(QStringLiteral("<b>%1</b>").arg(currentUser));