From b5b96015d9a5ebe9e4c57111e872e767ee044172 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 12 Nov 2012 07:43:09 +0100 Subject: [PATCH] * Fixed TWK-1088: Don't crash when checking for stop-playback track when starting the very first track after startup. --- src/libtomahawk/audio/AudioEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtomahawk/audio/AudioEngine.cpp b/src/libtomahawk/audio/AudioEngine.cpp index b1e610a0c..fbec7cae2 100644 --- a/src/libtomahawk/audio/AudioEngine.cpp +++ b/src/libtomahawk/audio/AudioEngine.cpp @@ -535,7 +535,7 @@ AudioEngine::loadNextTrack() Tomahawk::result_ptr result; - if ( !m_stopAfterTrack.isNull() ) + if ( !m_stopAfterTrack.isNull() && !m_currentTrack.isNull() ) { if ( m_stopAfterTrack->equals( m_currentTrack->toQuery() ) ) {