telepathy-qt: dbus-tubes: Move signal connection in Private
Dario Freddi
drf at kemper.freedesktop.org
Tue Jul 3 15:08:59 PDT 2012
Module: telepathy-qt
Branch: master
Commit: 497a4e7b463bf68664bc49ad9ae8b79280ace8f0
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=497a4e7b463bf68664bc49ad9ae8b79280ace8f0
Author: George Kiagiadakis <george.kiagiadakis at collabora.com>
Date: Mon Jul 2 18:31:05 2012 +0300
dbus-tubes: Move signal connection in Private
---
TelepathyQt/dbus-tube-channel.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/TelepathyQt/dbus-tube-channel.cpp b/TelepathyQt/dbus-tube-channel.cpp
index 86c6eb3..4a05b27 100644
--- a/TelepathyQt/dbus-tube-channel.cpp
+++ b/TelepathyQt/dbus-tube-channel.cpp
@@ -66,6 +66,10 @@ DBusTubeChannel::Private::Private(DBusTubeChannel *parent)
: parent(parent),
queuedContactFactory(new QueuedContactFactory(parent->connection()->contactManager(), parent))
{
+ parent->connect(queuedContactFactory,
+ SIGNAL(contactsRetrieved(QUuid,QList<Tp::ContactPtr>)),
+ SLOT(onContactsRetrieved(QUuid,QList<Tp::ContactPtr>)));
+
// Initialize readinessHelper + introspectables here
readinessHelper = parent->readinessHelper();
@@ -225,10 +229,6 @@ DBusTubeChannel::DBusTubeChannel(const ConnectionPtr &connection,
: TubeChannel(connection, objectPath, immutableProperties),
mPriv(new Private(this))
{
- connect(mPriv->queuedContactFactory,
- SIGNAL(contactsRetrieved(QUuid,QList<Tp::ContactPtr>)),
- this,
- SLOT(onContactsRetrieved(QUuid,QList<Tp::ContactPtr>)));
}
/**
More information about the telepathy-commits
mailing list