Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayer.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayer.cpp | 20 |
1 files changed, 12 insertions, 8 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 | |||
@@ -86,25 +86,29 @@ void MediaPlayer::setPlaying( bool play ) { | |||
86 | 86 | ||
87 | 87 | ||
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 | } else { | ||
95 | mediaPlayerState->setList(); | 96 | mediaPlayerState->setList(); |
96 | } | 97 | } |
98 | } | ||
97 | 99 | ||
98 | 100 | ||
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 | } |
108 | } else { | ||
106 | mediaPlayerState->setList(); | 109 | mediaPlayerState->setList(); |
107 | } | 110 | } |
111 | } | ||
108 | 112 | ||
109 | 113 | ||
110 | void MediaPlayer::startDecreasingVolume() { | 114 | void MediaPlayer::startDecreasingVolume() { |