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:
@@ -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() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user