1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-14 01:54:07 +02:00

* Update internal loved state sooner to make the UI feel more responsive.

This commit is contained in:
Christian Muehlhaeuser
2013-09-08 01:35:44 +02:00
parent 4ed80067fa
commit baab038566

View File

@@ -342,6 +342,9 @@ TrackData::loved()
void
TrackData::setLoved( bool loved )
{
m_currentSocialActions[ "Love" ] = loved;
emit socialActionsLoaded();
DatabaseCommand_SocialAction* cmd = new DatabaseCommand_SocialAction( m_ownRef.toStrongRef(), QString( "Love" ), loved ? QString( "true" ) : QString( "false" ) );
Database::instance()->enqueue( Tomahawk::dbcmd_ptr( cmd ) );
}