mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +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;
|
qDebug() << "LOADING ALL CREDENTIALS" << accountIds;
|
||||||
|
|
||||||
m_creds = new CredentialsManager( this );
|
m_creds = new CredentialsManager( this );
|
||||||
connect( m_creds, SIGNAL( ready() ),
|
NewClosure( m_creds, SIGNAL( ready() ),
|
||||||
this, SLOT( finishLoadingFromConfig() ) );
|
this, SLOT( finishLoadingFromConfig( QStringList ) ), accountIds );
|
||||||
m_creds->loadCredentials( accountIds );
|
m_creds->loadCredentials( accountIds );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
AccountManager::finishLoadingFromConfig()
|
AccountManager::finishLoadingFromConfig( const QStringList& accountIds )
|
||||||
{
|
{
|
||||||
QStringList accountIds = m_creds->keys();
|
|
||||||
qDebug() << "LOADING ALL ACCOUNTS" << accountIds;
|
qDebug() << "LOADING ALL ACCOUNTS" << accountIds;
|
||||||
|
|
||||||
foreach ( const QString& accountId, accountIds )
|
foreach ( const QString& accountId, accountIds )
|
||||||
|
@@ -112,7 +112,7 @@ private slots:
|
|||||||
void init();
|
void init();
|
||||||
void onStateChanged( Tomahawk::Accounts::Account::ConnectionState state );
|
void onStateChanged( Tomahawk::Accounts::Account::ConnectionState state );
|
||||||
void onError( int code, const QString& msg );
|
void onError( int code, const QString& msg );
|
||||||
void finishLoadingFromConfig();
|
void finishLoadingFromConfig( const QStringList& accountIds );
|
||||||
|
|
||||||
void onSettingsChanged();
|
void onSettingsChanged();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user