From a05e7c2b184c484771b5a37e4c2ebfadb301f57e Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 8 Sep 2013 01:29:59 +0200 Subject: [PATCH] * Revert to checking queryTrack()'s loved status. --- src/libtomahawk/playlist/PlaylistItemDelegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/playlist/PlaylistItemDelegate.cpp b/src/libtomahawk/playlist/PlaylistItemDelegate.cpp index e65c6b8e9..c6da851aa 100644 --- a/src/libtomahawk/playlist/PlaylistItemDelegate.cpp +++ b/src/libtomahawk/playlist/PlaylistItemDelegate.cpp @@ -373,7 +373,7 @@ PlaylistItemDelegate::drawLoveBox( QPainter* painter, const QRect& rect, Playabl i++; } - TomahawkUtils::ImageType type = item->query()->track()->loved() ? TomahawkUtils::Loved : TomahawkUtils::NotLoved; + TomahawkUtils::ImageType type = item->query()->queryTrack()->loved() ? TomahawkUtils::Loved : TomahawkUtils::NotLoved; QRect r = innerRect.adjusted( innerRect.width() - rect.height() + 4, 4, -4, -4 ); painter->drawPixmap( r, TomahawkUtils::defaultPixmap( type, TomahawkUtils::Original, QSize( r.height(), r.height() ) ) ); m_loveButtonRects[ index ] = r; @@ -462,7 +462,7 @@ PlaylistItemDelegate::editorEvent( QEvent* event, QAbstractItemModel* model, con if ( hoveringLove ) { - item->query()->track()->setLoved( !item->query()->track()->loved() ); + item->query()->queryTrack()->setLoved( !item->query()->queryTrack()->loved() ); } else if ( hoveringInfo ) {