mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 17:29:42 +01:00
untested: Try to only take sources offline if user explicitly set xmpp-account offline not if connection failed
This commit is contained in:
parent
62df8a2edd
commit
31c695e04a
@ -325,6 +325,10 @@ XmppSipPlugin::onDisconnect( Jreen::Client::DisconnectReason reason )
|
||||
switch( reason )
|
||||
{
|
||||
case Jreen::Client::User:
|
||||
foreach( const Jreen::JID &peer, m_peers.keys() )
|
||||
{
|
||||
handlePeerStatus( peer, Jreen::Presence::Unavailable );
|
||||
}
|
||||
break;
|
||||
|
||||
case Jreen::Client::AuthorizationError:
|
||||
@ -356,11 +360,6 @@ XmppSipPlugin::onDisconnect( Jreen::Client::DisconnectReason reason )
|
||||
|
||||
removeMenuHelper();
|
||||
|
||||
Q_FOREACH( const Jreen::JID &peer, m_peers.keys() )
|
||||
{
|
||||
handlePeerStatus( peer, Jreen::Presence::Unavailable );
|
||||
}
|
||||
|
||||
if ( !m_infoPlugin.isNull() )
|
||||
Tomahawk::InfoSystem::InfoSystem::instance()->removeInfoPlugin( infoPlugin() );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user