mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Fix issue with not all accountIds being carried over to loading phase.
This commit is contained in:
@@ -285,16 +285,15 @@ AccountManager::loadFromConfig()
|
||||
qDebug() << "LOADING ALL CREDENTIALS" << accountIds;
|
||||
|
||||
m_creds = new CredentialsManager( this );
|
||||
connect( m_creds, SIGNAL( ready() ),
|
||||
this, SLOT( finishLoadingFromConfig() ) );
|
||||
NewClosure( m_creds, SIGNAL( ready() ),
|
||||
this, SLOT( finishLoadingFromConfig( QStringList ) ), accountIds );
|
||||
m_creds->loadCredentials( accountIds );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AccountManager::finishLoadingFromConfig()
|
||||
AccountManager::finishLoadingFromConfig( const QStringList& accountIds )
|
||||
{
|
||||
QStringList accountIds = m_creds->keys();
|
||||
qDebug() << "LOADING ALL ACCOUNTS" << accountIds;
|
||||
|
||||
foreach ( const QString& accountId, accountIds )
|
||||
|
@@ -112,7 +112,7 @@ private slots:
|
||||
void init();
|
||||
void onStateChanged( Tomahawk::Accounts::Account::ConnectionState state );
|
||||
void onError( int code, const QString& msg );
|
||||
void finishLoadingFromConfig();
|
||||
void finishLoadingFromConfig( const QStringList& accountIds );
|
||||
|
||||
void onSettingsChanged();
|
||||
|
||||
|
Reference in New Issue
Block a user