1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-25 02:09:48 +01: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
PlaylistInterface::hasNextResult() const
{
return ( siblingResult( 1 ) );
Tomahawk::result_ptr r = siblingResult( 1 );
return ( r && r->isOnline() );
}
bool
PlaylistInterface::hasPreviousResult() const
{
return ( siblingResult( -1 ) );
Tomahawk::result_ptr r = siblingResult( -1 );
return ( r && r->isOnline() );
}