summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/mediaplayerstate.cpp
authorllornkcor <llornkcor>2002-08-13 23:42:50 (UTC)
committer llornkcor <llornkcor>2002-08-13 23:42:50 (UTC)
commit6baf582094b418ec1defa2415210a7d7583628ff (patch) (side-by-side diff)
treee7ee4a196eeb23a1b9276ab09f01aaf39ced83e3 /noncore/multimedia/opieplayer2/mediaplayerstate.cpp
parent8abcf5a17d4ec31ad01557b69b8b0e7d97dc0c8f (diff)
downloadopie-6baf582094b418ec1defa2415210a7d7583628ff.zip
opie-6baf582094b418ec1defa2415210a7d7583628ff.tar.gz
opie-6baf582094b418ec1defa2415210a7d7583628ff.tar.bz2
fix video button actions.. still needs work
Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayerstate.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayerstate.cpp19
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 {
}
-
-
// public stuff
@@ -159,14 +157,13 @@ void MediaPlayerState::setPlaylist( bool b ) {
}
void MediaPlayerState::setPaused( bool b ) {
-if(b) qDebug("setPaused true");
- else qDebug("setPaused false");
-
- if ( isPaused == b ) {
- return;
- }
- isPaused = b;
- emit pausedToggled(b);
+ if ( isPaused == b ) {
+ isPaused = FALSE;
+ emit pausedToggled(FALSE);
+ return;
+ }
+ isPaused = b;
+ emit pausedToggled(b);
}
void MediaPlayerState::setPlaying( bool b ) {
@@ -260,7 +257,7 @@ void MediaPlayerState::togglePlaylist() {
}
void MediaPlayerState::togglePaused() {
- setPaused( !isPaused);
+ setPaused( !isPaused);
}
void MediaPlayerState::togglePlaying() {