From afdd32544a01ed5ebdd4e849dd3e2a70b39a82a7 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 13 Oct 2009 18:11:43 +0000 Subject: fixed problem with error states git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1312 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/soundcore.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/qmmp/soundcore.cpp b/src/qmmp/soundcore.cpp index 858878a08..671a83348 100644 --- a/src/qmmp/soundcore.cpp +++ b/src/qmmp/soundcore.cpp @@ -108,7 +108,9 @@ void SoundCore::stop() //update VolumeControl delete m_volumeControl; m_volumeControl = VolumeControl::create(this); - connect(m_volumeControl, SIGNAL(volumeChanged(int, int)), SIGNAL(volumeChanged(int, int))); + connect(m_volumeControl, SIGNAL(volumeChanged(int, int)), SIGNAL(volumeChanged(int, int))); + if(state() == Qmmp::NormalError || state() == Qmmp::FatalError) //clear error state + StateHandler::instance()->dispatch(Qmmp::Stopped); } void SoundCore::pause() -- cgit v1.2.3-13-gbd6f