mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Simplify logic -- I think this should still work fine with source playlist interface and also fix issues where someone has stopped playing a track
This commit is contained in:
@@ -211,15 +211,7 @@ AudioEngine::canGoNext()
|
||||
m_playlist.data()->skipRestrictions() == PlaylistInterface::NoSkipForwards )
|
||||
return false;
|
||||
|
||||
if ( !m_currentTrack.isNull() && !m_playlist.data()->hasNextItem() &&
|
||||
( m_playlist.data()->currentItem().isNull() || ( m_currentTrack->id() == m_playlist.data()->currentItem()->id() ) ) )
|
||||
{
|
||||
//For instance, when doing a catch-up while listening along, but the person
|
||||
//you're following hasn't started a new track yet...don't do anything
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return m_playlist.data()->hasNextItem();
|
||||
}
|
||||
|
||||
bool
|
||||
|
Reference in New Issue
Block a user