summaryrefslogtreecommitdiff
path: root/core/multimedia
Unidiff
Diffstat (limited to 'core/multimedia') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/mediaplayer.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/multimedia/opieplayer/mediaplayer.cpp b/core/multimedia/opieplayer/mediaplayer.cpp
index c971a3c..7ef3e6a 100644
--- a/core/multimedia/opieplayer/mediaplayer.cpp
+++ b/core/multimedia/opieplayer/mediaplayer.cpp
@@ -99,3 +99,4 @@ void MediaPlayer::setPlaying( bool play ) {
99 } 99 }
100 if ( !QFile::exists( currentFile->file() ) ) { 100
101 if ( ((currentFile->file()).left(4) != "http") && !QFile::exists( currentFile->file() ) ) {
101 QMessageBox::critical( 0, tr( "File not found"), tr( "The following file was not found: <i>" ) + currentFile->file() + "</i>" ); 102 QMessageBox::critical( 0, tr( "File not found"), tr( "The following file was not found: <i>" ) + currentFile->file() + "</i>" );
@@ -136,3 +137,3 @@ void MediaPlayer::prev() {
136 play(); 137 play();
137 } else 138 } else
138 mediaPlayerState->setList(); 139 mediaPlayerState->setList();
@@ -142,4 +143,4 @@ void MediaPlayer::prev() {
142void MediaPlayer::next() { 143void MediaPlayer::next() {
143 if ( playList->next() ) 144 if ( playList->next() )
144 play(); 145 play();
145 else if ( mediaPlayerState->looping() ) { 146 else if ( mediaPlayerState->looping() ) {
@@ -172,5 +173,5 @@ void MediaPlayer::stopChangingVolume() {
172void MediaPlayer::timerEvent( QTimerEvent * ) { 173void MediaPlayer::timerEvent( QTimerEvent * ) {
173 if ( volumeDirection == +1 ) 174 if ( volumeDirection == +1 )
174 AudioDevice::increaseVolume(); 175 AudioDevice::increaseVolume();
175 else if ( volumeDirection == -1 ) 176 else if ( volumeDirection == -1 )
176 AudioDevice::decreaseVolume(); 177 AudioDevice::decreaseVolume();