1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 03:40:16 +02: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:
Jeff Mitchell
2011-08-26 16:12:51 -04:00
parent d06c43bfe6
commit 1c250b334b

View File

@@ -137,7 +137,7 @@ AudioEngine::play()
QVariant::fromValue< Tomahawk::InfoSystem::InfoCriteriaHash >( trackInfo ) ); QVariant::fromValue< Tomahawk::InfoSystem::InfoCriteriaHash >( trackInfo ) );
} }
else else
loadNextTrack(); next();
} }
@@ -205,6 +205,10 @@ bool
AudioEngine::canGoNext() AudioEngine::canGoNext()
{ {
tDebug( LOGEXTRA ) << Q_FUNC_INFO; tDebug( LOGEXTRA ) << Q_FUNC_INFO;
if ( m_queue && m_queue->trackCount() )
return true;
if ( m_playlist.isNull() ) if ( m_playlist.isNull() )
return false; return false;