[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork/kopete/libkopete
From: Pali Rohár <pali.rohar () gmail ! com>
Date: 2012-03-14 10:18:27
Message-ID: 20120314101827.54BC5AC898 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1285546 by pali:
Do not emit Kopete Contact signal statusMessageChanged when status message and status \
title was changed to same strings
This fixing problem that Kopete sometimes show notification that user changed status \
message or title which is not true
M +6 -0 kopetecontact.cpp
--- trunk/KDE/kdenetwork/kopete/libkopete/kopetecontact.cpp #1285545:1285546
@@ -181,6 +181,11 @@
void Contact::setStatusMessage( const Kopete::StatusMessage &statusMessage )
{
+ bool emitUpdate = true;
+
+ if ( d->statusMessage.title() == statusMessage.title() && \
d->statusMessage.message() == statusMessage.message() ) + emitUpdate = false;
+
d->statusMessage = statusMessage;
kDebug(14010) << "Setting up the status title property with this: " << \
statusMessage.title(); @@ -195,6 +200,7 @@
else
removeProperty( Kopete::Global::Properties::self()->statusMessage() );
+ if ( emitUpdate )
emit statusMessageChanged( this );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic