1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-19 15:31:59 +02:00

Fix RecentlyLovedModel

This commit is contained in:
Uwe L. Korn 2013-07-31 21:18:25 +02:00
parent 8a7c26227c
commit 387091e198
2 changed files with 1 additions and 3 deletions

View File

@ -45,7 +45,6 @@ RecentlyLovedTracksModel::loadTracks()
sql = QString( "SELECT track.name, artist.name, source "
"FROM social_attributes, track, artist "
"WHERE social_attributes.id = track.id AND artist.id = track.artist AND social_attributes.k = 'Love' AND social_attributes.v = 'true' "
"GROUP BY track.id "
"ORDER BY social_attributes.timestamp DESC LIMIT %1" )
.arg( d->limit );
}
@ -54,7 +53,6 @@ RecentlyLovedTracksModel::loadTracks()
sql = QString( "SELECT track.name, artist.name "
"FROM social_attributes, track, artist "
"WHERE social_attributes.id = track.id AND artist.id = track.artist AND social_attributes.k = 'Love' AND social_attributes.v = 'true' AND social_attributes.source %1 "
"GROUP BY track.id "
"ORDER BY social_attributes.timestamp DESC "
)
.arg( d->source->isLocal() ? "IS NULL" : QString( "= %1" ).arg( d->source->id() ) );

View File

@ -24,7 +24,7 @@
class RecentlyLovedTracksModelPrivate;
class RecentlyLovedTracksModel : public LovedTracksModel
class DLLEXPORT RecentlyLovedTracksModel : public LovedTracksModel
{
Q_OBJECT
public: