summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistwidget.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp
index 35208e4..b0d4958 100644
--- a/core/multimedia/opieplayer/playlistwidget.cpp
+++ b/core/multimedia/opieplayer/playlistwidget.cpp
@@ -419,4 +419,6 @@ void PlayListWidget::addToSelection( const DocLnk& lnk ) {
d->setDocumentUsed = FALSE;
- if ( mediaPlayerState->playlist() )
+ if ( mediaPlayerState->playlist() ) {
+ if(QFileInfo(lnk.file()).exists())
d->selectedFiles->addToSelection( lnk );
+ }
else
@@ -437,2 +439,3 @@ void PlayListWidget::addAllToList() {
for ( ; Adit.current(); ++Adit )
+ if(QFileInfo(Adit.current()->file()).exists())
d->selectedFiles->addToSelection( **Adit );
@@ -444,2 +447,3 @@ void PlayListWidget::addAllMusicToList() {
for ( ; dit.current(); ++dit )
+ if(QFileInfo(dit.current()->file()).exists())
d->selectedFiles->addToSelection( **dit );
@@ -451,2 +455,3 @@ void PlayListWidget::addAllVideoToList() {
for ( ; dit.current(); ++dit )
+ if(QFileInfo( dit.current()->file()).exists())
d->selectedFiles->addToSelection( **dit );