mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
Fix RecentlyLovedModel
This commit is contained in:
@@ -45,7 +45,6 @@ RecentlyLovedTracksModel::loadTracks()
|
|||||||
sql = QString( "SELECT track.name, artist.name, source "
|
sql = QString( "SELECT track.name, artist.name, source "
|
||||||
"FROM social_attributes, track, artist "
|
"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' "
|
"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" )
|
"ORDER BY social_attributes.timestamp DESC LIMIT %1" )
|
||||||
.arg( d->limit );
|
.arg( d->limit );
|
||||||
}
|
}
|
||||||
@@ -54,7 +53,6 @@ RecentlyLovedTracksModel::loadTracks()
|
|||||||
sql = QString( "SELECT track.name, artist.name "
|
sql = QString( "SELECT track.name, artist.name "
|
||||||
"FROM social_attributes, track, artist "
|
"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 "
|
"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 "
|
"ORDER BY social_attributes.timestamp DESC "
|
||||||
)
|
)
|
||||||
.arg( d->source->isLocal() ? "IS NULL" : QString( "= %1" ).arg( d->source->id() ) );
|
.arg( d->source->isLocal() ? "IS NULL" : QString( "= %1" ).arg( d->source->id() ) );
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
class RecentlyLovedTracksModelPrivate;
|
class RecentlyLovedTracksModelPrivate;
|
||||||
|
|
||||||
class RecentlyLovedTracksModel : public LovedTracksModel
|
class DLLEXPORT RecentlyLovedTracksModel : public LovedTracksModel
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user