From ed6ccddc6c253fab8032267d4fc3fd3cc4512221 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 10 Mar 2014 18:50:33 +0100 Subject: [PATCH] Song: do not stop playback twice Otherwise we reset data which doesn't need to be reset when stopped already. Closes #255. --- src/core/song.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/song.cpp b/src/core/song.cpp index 3512b82a5..04632bc94 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -554,6 +554,12 @@ void song::togglePause() void song::stop() { + // do not stop/reset things again if we're stopped already + if( m_playMode == Mode_None ) + { + return; + } + timeLine * tl = m_playPos[m_playMode].m_timeLine; m_playing = false; m_paused = false;