summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2010-12-30 13:36:59 -0200
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2010-12-31 11:20:39 -0200
commitd01975b318fc56191b4e658abd7a968935530b89 (patch)
treec2d505a80ead33a3344e1e41cfe5adcacc69e78f
parenta398ff89229a9599e0d21f5976cb00f2a459eca2 (diff)
Connection: Don't emit redundant statusChanged.
-rw-r--r--TelepathyQt4/connection.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/TelepathyQt4/connection.cpp b/TelepathyQt4/connection.cpp
index b7fde4ba..f11b6dd3 100644
--- a/TelepathyQt4/connection.cpp
+++ b/TelepathyQt4/connection.cpp
@@ -1462,6 +1462,10 @@ void Connection::onStatusReady(uint status)
{
Q_ASSERT(status == mPriv->pendingStatus);
+ if (mPriv->status == status) {
+ return;
+ }
+
mPriv->status = status;
mPriv->statusReason = mPriv->pendingStatusReason;