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:
parent
8a7c26227c
commit
387091e198
@ -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() ) );
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
class RecentlyLovedTracksModelPrivate;
|
||||
|
||||
class RecentlyLovedTracksModel : public LovedTracksModel
|
||||
class DLLEXPORT RecentlyLovedTracksModel : public LovedTracksModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user