1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

* Fixed PlaylistInterface ignoring offline results.

This commit is contained in:
Christian Muehlhaeuser
2012-12-09 07:22:24 +01:00
parent a21c73712a
commit 51c184d62f

View File

@@ -158,14 +158,16 @@ PlaylistInterface::filterTracks( const QList<Tomahawk::query_ptr>& queries )
bool bool
PlaylistInterface::hasNextResult() const PlaylistInterface::hasNextResult() const
{ {
return ( siblingResult( 1 ) ); Tomahawk::result_ptr r = siblingResult( 1 );
return ( r && r->isOnline() );
} }
bool bool
PlaylistInterface::hasPreviousResult() const PlaylistInterface::hasPreviousResult() const
{ {
return ( siblingResult( -1 ) ); Tomahawk::result_ptr r = siblingResult( -1 );
return ( r && r->isOnline() );
} }