mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Fixed TWK-1088: Don't crash when checking for stop-playback track when starting the very first track after startup.
This commit is contained in:
@@ -535,7 +535,7 @@ AudioEngine::loadNextTrack()
|
|||||||
|
|
||||||
Tomahawk::result_ptr result;
|
Tomahawk::result_ptr result;
|
||||||
|
|
||||||
if ( !m_stopAfterTrack.isNull() )
|
if ( !m_stopAfterTrack.isNull() && !m_currentTrack.isNull() )
|
||||||
{
|
{
|
||||||
if ( m_stopAfterTrack->equals( m_currentTrack->toQuery() ) )
|
if ( m_stopAfterTrack->equals( m_currentTrack->toQuery() ) )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user