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

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/protocols/oscar/icq
From:       Roman Jarosz <kedgedev () centrum ! cz>
Date:       2008-04-27 15:55:45
Message-ID: 1209311745.868360.24429.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 801740 by rjarosz:

Fix bug 161329: kopete does not clean status title

If the status message isn't cleard too (I can't reproduce it) please reopen this bug 
and provide more info, thanks.

BUG: 161329



 M  +6 -6      icqcontact.cpp  


--- trunk/KDE/kdenetwork/kopete/protocols/oscar/icq/icqcontact.cpp #801739:801740
@@ -140,7 +140,12 @@
 	else if ( !m_statusDescription.isEmpty() )
 	{
 		presence.setFlags( presence.flags() | Oscar::Presence::ExtStatus );
+		setProperty( mProtocol->statusTitle, m_statusDescription );
 	}
+	else
+	{
+		removeProperty( mProtocol->statusTitle );
+	}
 
 	setPresenceTarget( presence );
 
@@ -382,13 +387,8 @@
 		setNickName( QString::fromUtf8( info.nickName.get() ) );
 
 	m_statusDescription = QString::fromUtf8( info.statusDescription.get() );
-	if ( !m_statusDescription.isEmpty() )
-		setProperty( mProtocol->statusTitle, m_statusDescription );
-	else
-		removeProperty( mProtocol->statusTitle );
+	Oscar::Presence presence = mProtocol->statusManager()->presenceOf( onlineStatus() );
 
-	Oscar::Presence presence = mProtocol->statusManager()->presenceOf( onlineStatus() );
-	
 	refreshStatus( m_details, presence );
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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