author | harlekin <harlekin> | 2002-07-08 23:46:13 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-08 23:46:13 (UTC) |
commit | 56554891922367c5d4e7d0f6965daa1026c0cc54 (patch) (unidiff) | |
tree | a21ce87e748517bfb5011a78f2e306826c493db2 /noncore/multimedia/opieplayer2/mediaplayer.cpp | |
parent | 647a6c7ec282ea9b0b45baf8935b8eefc3ff8269 (diff) | |
download | opie-56554891922367c5d4e7d0f6965daa1026c0cc54.zip opie-56554891922367c5d4e7d0f6965daa1026c0cc54.tar.gz opie-56554891922367c5d4e7d0f6965daa1026c0cc54.tar.bz2 |
more gui parts working now
Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayer.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayer.cpp | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp index be59d8d..0ab0124 100644 --- a/noncore/multimedia/opieplayer2/mediaplayer.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp | |||
@@ -88,9 +88,11 @@ void MediaPlayer::setPlaying( bool play ) { | |||
88 | void MediaPlayer::prev() { | 88 | void MediaPlayer::prev() { |
89 | if ( playList->prev() ) | 89 | if ( playList->prev() ) { |
90 | play(); | 90 | play(); |
91 | else if ( mediaPlayerState->looping() ) { | 91 | } else if ( mediaPlayerState->looping() ) { |
92 | if ( playList->last() ) | 92 | if ( playList->last() ) { |
93 | play(); | 93 | play(); |
94 | } else | 94 | } |
95 | mediaPlayerState->setList(); | 95 | } else { |
96 | mediaPlayerState->setList(); | ||
97 | } | ||
96 | } | 98 | } |
@@ -99,9 +101,11 @@ void MediaPlayer::prev() { | |||
99 | void MediaPlayer::next() { | 101 | void MediaPlayer::next() { |
100 | if ( playList->next() ) | 102 | if ( playList->next() ) { |
101 | play(); | 103 | play(); |
102 | else if ( mediaPlayerState->looping() ) { | 104 | } else if ( mediaPlayerState->looping() ) { |
103 | if ( playList->first() ) | 105 | if ( playList->first() ) { |
104 | play(); | 106 | play(); |
105 | } else | 107 | } |
106 | mediaPlayerState->setList(); | 108 | } else { |
109 | mediaPlayerState->setList(); | ||
110 | } | ||
107 | } | 111 | } |