summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Klapetek <[email protected]>2015-05-26 18:49:22 +0200
committerMartin Klapetek <[email protected]>2015-05-26 18:49:22 +0200
commitba449964f637062d56ab32477d6c9095b004b33e (patch)
treea715671ed6733de179a4989771af70c7ed171d10
parentf028f93b6532d40608999d620a1af202071359f4 (diff)
Fix the profile querying logic
-rw-r--r--plugins/kaccounts/kaccounts-ui-provider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/kaccounts/kaccounts-ui-provider.cpp b/plugins/kaccounts/kaccounts-ui-provider.cpp
index 0ff92d1..539706b 100644
--- a/plugins/kaccounts/kaccounts-ui-provider.cpp
+++ b/plugins/kaccounts/kaccounts-ui-provider.cpp
@@ -186,7 +186,7 @@ void KAccountsUiProvider::onProfileManagerReady(Tp::PendingOperation *op)
auto profiles = d->profileManager->profilesForProtocol(d->protocol);
Q_FOREACH (const Tp::ProfilePtr &profile, profiles) {
- if (profile->cmName() == d->manager && (kdeTalk && profile->serviceName() == QLatin1String("kde-talk"))) {
+ if (profile->cmName() == d->manager || (kdeTalk && profile->serviceName() == QLatin1String("kde-talk"))) {
d->profile = profile;
break;
}