telepathy-qt: emit selfHandleChanged on setSelfHandle()
David Edmundson
davidedmundson at kemper.freedesktop.org
Tue Feb 10 06:30:10 PST 2015
Module: telepathy-qt
Branch: master
Commit: 3c1230c83368ef2823053825798aa64a719a83b9
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=3c1230c83368ef2823053825798aa64a719a83b9
Author: Tiago Salem Herrmann <tiago.herrmann at canonical.com>
Date: Fri Jan 30 18:40:08 2015 -0200
emit selfHandleChanged on setSelfHandle()
---
TelepathyQt/base-connection.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/TelepathyQt/base-connection.cpp b/TelepathyQt/base-connection.cpp
index 43f9a65..0c94296 100644
--- a/TelepathyQt/base-connection.cpp
+++ b/TelepathyQt/base-connection.cpp
@@ -601,7 +601,10 @@ bool BaseConnection::registerObject(const QString &busName,
void BaseConnection::setSelfHandle(uint selfHandle)
{
+ bool changed = (selfHandle != mPriv->selfHandle);
mPriv->selfHandle = selfHandle;
+ if (changed)
+ emit mPriv->adaptee->selfHandleChanged(mPriv->selfHandle);
}
uint BaseConnection::selfHandle() const
More information about the telepathy-commits
mailing list