[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 11:08:02
Message-ID: 20120314110802.834C8AC898 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1285548 by pali:

In rev 1282234 was deleted one QObject::connect which called slot for changing online \
status of contact in active chat window

This commit adding back original signal/slot callback, because it is needed for \
showing proper online status of contact in chat window


 M  +4 -0      kopetechatsession.cpp  


--- trunk/KDE/kdenetwork/kopete/libkopete/kopetechatsession.cpp #1285547:1285548
@@ -455,6 +455,8 @@
 			d->contacts.removeAll( old );
 			d->contacts.append( (Kopete::Contact*)c );
 
+			disconnect( old, \
SIGNAL(onlineStatusChanged(Kopete::Contact*,Kopete::OnlineStatus,Kopete::OnlineStatus)),
 +				this, SLOT(slotOnlineStatusChanged(Kopete::Contact*,Kopete::OnlineStatus,Kopete::OnlineStatus)) \
);  disconnect( old, SIGNAL(statusMessageChanged(Kopete::Contact*)), this, \
SIGNAL(statusMessageChanged(Kopete::Contact*)) );  
 			if ( old->metaContact() )
@@ -476,6 +478,8 @@
 			emit contactAdded( c, suppress );
 		}
 
+		connect( c, SIGNAL(onlineStatusChanged(Kopete::Contact*,Kopete::OnlineStatus,Kopete::OnlineStatus)),
 +			this, SLOT(slotOnlineStatusChanged(Kopete::Contact*,Kopete::OnlineStatus,Kopete::OnlineStatus)) \
);  connect( c, SIGNAL(statusMessageChanged(Kopete::Contact*)), this, \
SIGNAL(statusMessageChanged(Kopete::Contact*)) );  
 		if ( c->metaContact() )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic