mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-16 19:14:06 +02:00
fixed bugs in QtKeyChain integration
This commit is contained in:
@@ -125,6 +125,7 @@ Account::keychainJobFinished(QKeychain::Job* j )
|
||||
deserializeCredentials( readJob->binaryData() );
|
||||
tLog() << Q_FUNC_INFO << readJob->key();
|
||||
tLog() << Q_FUNC_INFO << m_credentials;
|
||||
emit credentialsChanged();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -191,6 +192,17 @@ Account::syncConfig()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Account::syncType()
|
||||
{
|
||||
TomahawkSettings* s = TomahawkSettings::instance();
|
||||
s->beginGroup( "accounts/" + m_accountId );
|
||||
s->setValue( "types", m_types );
|
||||
s->endGroup();
|
||||
s->sync();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Account::loadFromConfig( const QString& accountId )
|
||||
{
|
||||
@@ -246,7 +258,8 @@ Account::setTypes( AccountTypes types )
|
||||
m_types << "ResolverType";
|
||||
if ( types & StatusPushType )
|
||||
m_types << "StatusPushType";
|
||||
syncConfig();
|
||||
//syncConfig();
|
||||
syncType();
|
||||
}
|
||||
|
||||
|
||||
|
@@ -139,6 +139,7 @@ signals:
|
||||
protected:
|
||||
virtual void loadFromConfig( const QString &accountId );
|
||||
virtual void syncConfig();
|
||||
virtual void syncType();
|
||||
|
||||
private slots:
|
||||
void onConnectionStateChanged( Tomahawk::Accounts::Account::ConnectionState );
|
||||
|
Reference in New Issue
Block a user