[SCM] ktp-common-internals packaging branch, master, updated. debian/16.04.2-1-111-g6e00b1c
Maximiliano Curia
maxy at moszumanska.debian.org
Tue Sep 12 14:08:54 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=3989778
The following commit has been merged in the master branch:
commit 3989778fafde7fbf8bf2e4b7b439a0b401050187
Author: Alexandr Akulich <akulichalexander at gmail.com>
Date: Wed Aug 31 13:48:52 2016 +0500
[kpeople] Final initialization step moved from loadCache to constructor
The moved code should be called just once on construction and *not*
on each cache load (which is called on (any) account presence changed to
offline).
REVIEW: 128807
---
kpeople/datasourceplugin/im-persons-data-source.cpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/kpeople/datasourceplugin/im-persons-data-source.cpp b/kpeople/datasourceplugin/im-persons-data-source.cpp
index 7f1d08e..05eb840 100644
--- a/kpeople/datasourceplugin/im-persons-data-source.cpp
+++ b/kpeople/datasourceplugin/im-persons-data-source.cpp
@@ -117,6 +117,12 @@ KTpAllContacts::KTpAllContacts()
Tp::registerTypes();
loadCache();
+
+ //now start fetching the up-to-date information
+ connect(KTp::accountManager()->becomeReady(), SIGNAL(finished(Tp::PendingOperation*)),
+ this, SLOT(onAccountManagerReady(Tp::PendingOperation*)));
+
+ emitInitialFetchComplete(true);
}
KTpAllContacts::~KTpAllContacts()
@@ -230,12 +236,6 @@ void KTpAllContacts::loadCache(const QString &accountId)
m_contactVCards[uri] = addressee;
}
-
- //now start fetching the up-to-date information
- connect(KTp::accountManager()->becomeReady(), SIGNAL(finished(Tp::PendingOperation*)),
- this, SLOT(onAccountManagerReady(Tp::PendingOperation*)), Qt::UniqueConnection);
-
- emitInitialFetchComplete(true);
}
void KTpAllContacts::onAccountManagerReady(Tp::PendingOperation *op)
--
ktp-common-internals packaging
More information about the pkg-kde-commits
mailing list