mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 08:19:42 +01: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:
parent
5e18b0aedd
commit
3ce0686e42
@ -232,7 +232,7 @@ AudioEngine::canGoNext()
|
||||
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 )
|
||||
return false;
|
||||
|
||||
return m_playlist.data()->hasPreviousResult();
|
||||
return ( m_playlist.data()->hasPreviousResult() && m_playlist.data()->previousResult()->isOnline() );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user