mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Initial syncstate removal on userchange
This commit is contained in:
@@ -355,6 +355,17 @@ SpotifyAccount::resolverMessage( const QString &msgType, const QVariantMap &msg
|
|||||||
else
|
else
|
||||||
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( QString( "Spotify: %1" ).arg( error ) ) );
|
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( QString( "Spotify: %1" ).arg( error ) ) );
|
||||||
}
|
}
|
||||||
|
else if( msgType == "userChanged" )
|
||||||
|
{
|
||||||
|
const QString rmsg = msg.value( "msg" ).toString();
|
||||||
|
//const QString olduser = msg.value( "oldUser" ).toString();
|
||||||
|
//const QString newuser = msg.value( "newUser" ).toString();
|
||||||
|
if( rmsg.isEmpty() )
|
||||||
|
return;
|
||||||
|
/// @todo: actually remove sync states for old user....
|
||||||
|
|
||||||
|
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( QString( "Spotify: %1" ).arg( rmsg ) ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user