[telepathy-qt4/master] ContactManager: Added Private::parent member.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Wed Jul 22 11:53:48 PDT 2009
---
TelepathyQt4/contact-manager.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/TelepathyQt4/contact-manager.cpp b/TelepathyQt4/contact-manager.cpp
index 9534564..ce37043 100644
--- a/TelepathyQt4/contact-manager.cpp
+++ b/TelepathyQt4/contact-manager.cpp
@@ -65,11 +65,12 @@ namespace Tp
struct ContactManager::Private
{
- Private(const ConnectionPtr &connection) :
- connection(connection)
+ Private(ContactManager *parent, const ConnectionPtr &connection)
+ : parent(parent), connection(connection)
{
}
+ ContactManager *parent;
WeakPtr<Connection> connection;
QMap<uint, QWeakPointer<Contact> > contacts;
@@ -868,7 +869,7 @@ void ContactManager::onContactListGroupRemoved(Tp::DBusProxy *proxy,
ContactManager::ContactManager(const ConnectionPtr &connection)
: QObject(connection.data()),
- mPriv(new Private(connection))
+ mPriv(new Private(this, connection))
{
}
--
1.5.6.5
More information about the telepathy-commits
mailing list