From fcedb5717882ddc0e0776e323f7d4d07233fd22f Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 16 May 2013 11:40:40 +0200 Subject: [PATCH] * New Track API supports loving without posting to the InfoSystem. --- src/libtomahawk/accounts/lastfm/LastFmConfig.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp b/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp index 195eb72b7..d2deb4d01 100644 --- a/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp +++ b/src/libtomahawk/accounts/lastfm/LastFmConfig.cpp @@ -395,8 +395,7 @@ LastFmConfig::syncLoved() foreach ( const Tomahawk::track_ptr& track, localToLove ) { // Don't use the infosystem as we don't want to tweet a few hundred times :) - DatabaseCommand_SocialAction* cmd = new DatabaseCommand_SocialAction( track, QString( "Love" ), QString( "true" ) ); - Database::instance()->enqueue( QSharedPointer(cmd) ); + track->setLoved( true, false ); } lastFmToLove.unite( lastFmToUnlove );