mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-25 02:09:48 +01:00
Handle checking queue in canGoNext so that we can use next() all the
time instead of randomly skipping it and using loadNextTrack directly sometimes
This commit is contained in:
parent
d06c43bfe6
commit
1c250b334b
@ -137,7 +137,7 @@ AudioEngine::play()
|
||||
QVariant::fromValue< Tomahawk::InfoSystem::InfoCriteriaHash >( trackInfo ) );
|
||||
}
|
||||
else
|
||||
loadNextTrack();
|
||||
next();
|
||||
}
|
||||
|
||||
|
||||
@ -205,6 +205,10 @@ bool
|
||||
AudioEngine::canGoNext()
|
||||
{
|
||||
tDebug( LOGEXTRA ) << Q_FUNC_INFO;
|
||||
|
||||
if ( m_queue && m_queue->trackCount() )
|
||||
return true;
|
||||
|
||||
if ( m_playlist.isNull() )
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user