summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp
index 8136ff1..6a38adc 100644
--- a/noncore/multimedia/opieplayer2/mediaplayer.cpp
+++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp
@@ -94,9 +94,9 @@ void MediaPlayer::setPlaying( bool play ) {
return;
}
QString tickerText, time, fileName;
- if( playList->whichList() == 0 ) { //check for filelist
+ if( playList->currentTab() == PlayListWidget::CurrentPlayList ) { //check for filelist
const DocLnk *playListCurrent = playList->current();
if ( playListCurrent != NULL ) {
currentFile = playListCurrent;
}
@@ -146,9 +146,9 @@ void MediaPlayer::setPlaying( bool play ) {
}
void MediaPlayer::prev() {
- if( playList->whichList() == 0 ) { //if using the playlist
+ if( playList->currentTab() == PlayListWidget::CurrentPlayList ) { //if using the playlist
if ( playList->prev() ) {
play();
} else if ( mediaPlayerState->isLooping() ) {
if ( playList->last() ) {
@@ -162,9 +162,9 @@ void MediaPlayer::prev() {
void MediaPlayer::next() {
- if(playList->whichList() == 0) { //if using the playlist
+ if(playList->currentTab() == PlayListWidget::CurrentPlayList) { //if using the playlist
if ( playList->next() ) {
play();
} else if ( mediaPlayerState->isLooping() ) {
if ( playList->first() ) {