Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp index 57b1c81..bb8d905 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp | |||
@@ -53,8 +53,6 @@ void MediaPlayerState::writeConfig( Config& cfg ) const { | |||
53 | } | 53 | } |
54 | 54 | ||
55 | 55 | ||
56 | |||
57 | |||
58 | // public stuff | 56 | // public stuff |
59 | 57 | ||
60 | 58 | ||
@@ -159,14 +157,13 @@ void MediaPlayerState::setPlaylist( bool b ) { | |||
159 | } | 157 | } |
160 | 158 | ||
161 | void MediaPlayerState::setPaused( bool b ) { | 159 | void MediaPlayerState::setPaused( bool b ) { |
162 | if(b) qDebug("setPaused true"); | 160 | if ( isPaused == b ) { |
163 | else qDebug("setPaused false"); | 161 | isPaused = FALSE; |
164 | 162 | emit pausedToggled(FALSE); | |
165 | if ( isPaused == b ) { | 163 | return; |
166 | return; | 164 | } |
167 | } | 165 | isPaused = b; |
168 | isPaused = b; | 166 | emit pausedToggled(b); |
169 | emit pausedToggled(b); | ||
170 | } | 167 | } |
171 | 168 | ||
172 | void MediaPlayerState::setPlaying( bool b ) { | 169 | void MediaPlayerState::setPlaying( bool b ) { |
@@ -260,7 +257,7 @@ void MediaPlayerState::togglePlaylist() { | |||
260 | } | 257 | } |
261 | 258 | ||
262 | void MediaPlayerState::togglePaused() { | 259 | void MediaPlayerState::togglePaused() { |
263 | setPaused( !isPaused); | 260 | setPaused( !isPaused); |
264 | } | 261 | } |
265 | 262 | ||
266 | void MediaPlayerState::togglePlaying() { | 263 | void MediaPlayerState::togglePlaying() { |