mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
* Only disconnectAll / connectAll for sip-plugins.
This commit is contained in:
@@ -188,11 +188,16 @@ AccountManager::connectAll()
|
|||||||
{
|
{
|
||||||
if ( acc->enabled() )
|
if ( acc->enabled() )
|
||||||
{
|
{
|
||||||
acc->authenticate();
|
if ( acc->sipPlugin() )
|
||||||
m_enabledAccounts << acc;
|
{
|
||||||
}
|
tDebug() << Q_FUNC_INFO << "Connecting" << acc->accountFriendlyName();
|
||||||
|
acc->authenticate();
|
||||||
|
|
||||||
|
m_enabledAccounts << acc;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_connected = true;
|
m_connected = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -202,9 +207,16 @@ AccountManager::disconnectAll()
|
|||||||
{
|
{
|
||||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO;
|
tDebug( LOGVERBOSE ) << Q_FUNC_INFO;
|
||||||
foreach ( Account* acc, m_enabledAccounts )
|
foreach ( Account* acc, m_enabledAccounts )
|
||||||
acc->deauthenticate();
|
{
|
||||||
|
if ( acc->sipPlugin() )
|
||||||
|
{
|
||||||
|
tDebug() << Q_FUNC_INFO << "Disconnecting" << acc->accountFriendlyName();
|
||||||
|
acc->deauthenticate();
|
||||||
|
|
||||||
|
m_enabledAccounts.removeAll( acc );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_enabledAccounts.clear();
|
|
||||||
SourceList::instance()->removeAllRemote();
|
SourceList::instance()->removeAllRemote();
|
||||||
m_connected = false;
|
m_connected = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user