1
0
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:
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 ) );
}
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;