mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 19:37:09 +02:00
Set the state of all peers to offline on disconnecting a jabber account.
This commit is contained in:
@@ -359,6 +359,13 @@ XmppSipPlugin::onDisconnect( Jreen::Client::DisconnectReason reason )
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
m_state = Account::Disconnected;
|
m_state = Account::Disconnected;
|
||||||
|
|
||||||
|
// Set the state of all peers to offline.
|
||||||
|
foreach( Jreen::JID peer, m_peers.keys() )
|
||||||
|
{
|
||||||
|
m_peers[ peer ] = Jreen::Presence::Unavailable;
|
||||||
|
}
|
||||||
|
|
||||||
emit stateChanged( m_state );
|
emit stateChanged( m_state );
|
||||||
|
|
||||||
removeMenuHelper();
|
removeMenuHelper();
|
||||||
|
Reference in New Issue
Block a user