mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 15:16:34 +02:00
* AudioEngine should not only check if we have a prev/next result, but also if it's playable / online.
This commit is contained in:
@@ -232,7 +232,7 @@ AudioEngine::canGoNext()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_playlist.data()->hasNextResult();
|
return ( m_playlist.data()->hasNextResult() && m_playlist.data()->nextResult()->isOnline() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -246,7 +246,7 @@ AudioEngine::canGoPrevious()
|
|||||||
m_playlist.data()->skipRestrictions() == PlaylistModes::NoSkipBackwards )
|
m_playlist.data()->skipRestrictions() == PlaylistModes::NoSkipBackwards )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return m_playlist.data()->hasPreviousResult();
|
return ( m_playlist.data()->hasPreviousResult() && m_playlist.data()->previousResult()->isOnline() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user