------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=132609
ogoffart kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From ogoffart kde org 2006-08-18 22:58 -------
SVN commit 574370 by ogoffart:
Do not remove the status message if one protocol doesn't support it
BUG: 132609
M +23 -2 kopetewindow.cpp
--- branches/KDE/3.5/kdenetwork/kopete/kopete/kopetewindow.cpp #574369:574370
@ -791,8 +791,29 @
if ( status != Kopete::OnlineStatus::Connecting )
{
- m_globalStatusMessageStored = contact->property(
Kopete::Global::Properties::self()->awayMessage() ).value().toString();
- m_globalStatusMessage->setText( m_globalStatusMessageStored );
+
if(contact->hasProperty(Kopete::Global::Properties::self()->awayMessage().key()))
+ {
+ m_globalStatusMessageStored = contact->property(
Kopete::Global::Properties::self()->awayMessage() ).value().toString();
+ m_globalStatusMessage->setText(
m_globalStatusMessageStored );
+ }
+ else //If the account has not status message, it may be because
the protocol doesn't support it (Bug 132609)
+ { // or because the user just set an empty status to this
account.
+ // We will check if another account has still a status
message, if yes, we will use it, if not, we will clear it.
+ QString statusMessageToUse;
+ QPtrList<Kopete::Account> accounts =
Kopete::AccountManager::self()->accounts();
+ for(Kopete::Account *a = accounts.first(); a; a =
accounts.next())
+ {
+ Kopete::Contact *self = a->myself();
+
if(self->hasProperty(Kopete::Global::Properties::self()->awayMessage().key()))
+ {
+ statusMessageToUse = self->property(
Kopete::Global::Properties::self()->awayMessage() ).value().toString();
+ if(statusMessageToUse ==
m_globalStatusMessageStored )
+ break; //keep this one
+ }
+ }
+ m_globalStatusMessageStored = statusMessageToUse;
+ m_globalStatusMessage->setText(
m_globalStatusMessageStored );
+ }
}
KopeteAccountStatusBarIcon *i = static_cast<KopeteAccountStatusBarIcon
*>( m_accountStatusBarIcons[ contact->account() ] );
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel