1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

style fix

This commit is contained in:
Hugo Lindström
2012-12-21 11:24:54 +01:00
parent ec85e91825
commit e3f5d1ade6

View File

@@ -904,12 +904,12 @@ SpotifyAccount::resolverMessage( const QString &msgType, const QVariantMap &msg
} }
else if ( msgType == "starredChanged" ) else if ( msgType == "starredChanged" )
{ {
if( loveSync() ) if ( loveSync() )
{ {
const QVariantList tracksList = msg.value( "tracks" ).toList(); const QVariantList tracksList = msg.value( "tracks" ).toList();
const bool love = msg.value( "starred" ).toBool(); const bool love = msg.value( "starred" ).toBool();
QList<query_ptr> qs = SpotifyPlaylistUpdater::variantToQueries( tracksList ); QList<query_ptr> qs = SpotifyPlaylistUpdater::variantToQueries( tracksList );
foreach( const query_ptr& query, qs ) foreach ( const query_ptr& query, qs )
{ {
query->setLoved( love ); query->setLoved( love );
} }
@@ -1137,7 +1137,7 @@ SpotifyAccount::saveConfig()
if ( pl->changed ) if ( pl->changed )
{ {
pl->changed = false; pl->changed = false;
if( !pl->sync && pl->loveSync ) if ( !pl->sync && pl->loveSync )
{ {
QVariantMap msg; QVariantMap msg;
msg[ "_msgtype" ] = "setSync"; msg[ "_msgtype" ] = "setSync";