summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index e33998f..612fd45 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -324,4 +324,5 @@ void PlayListWidget::readConfig( Config& cfg ) {
QString linkFile = cfg.readEntry( entryName );
+ if(QFileInfo( linkFile).exists() ) {
DocLnk lnk( linkFile );
- if ( lnk.isValid() ) {
+ if ( QFileInfo( lnk.file()).exists() || linkFile.find("http",0,TRUE) != -1) {
d->selectedFiles->addToSelection( lnk );
@@ -329,2 +330,3 @@ void PlayListWidget::readConfig( Config& cfg ) {
}
+ }
d->selectedFiles->setSelectedItem( currentString);
@@ -653,2 +655,3 @@ void PlayListWidget::addSelected() {
if( dit.current()->name() == it.current()->text(0) ) {
+ if(QFileInfo( dit.current()->file()).exists())
d->selectedFiles->addToSelection( **dit );
@@ -670,2 +673,3 @@ void PlayListWidget::addSelected() {
if( dit.current()->name() == it.current()->text(0) ) {
+ if(QFileInfo( dit.current()->file()).exists())
d->selectedFiles->addToSelection( **dit );
@@ -703,2 +707,3 @@ void PlayListWidget::addToSelection( QListViewItem *it) {
if( dit.current()->name() == it->text(0)) {
+ if(QFileInfo( dit.current()->file()).exists())
d->selectedFiles->addToSelection( **dit );
@@ -712,2 +717,3 @@ void PlayListWidget::addToSelection( QListViewItem *it) {
if( dit.current()->name() == it->text(0)) {
+ if(QFileInfo( dit.current()->file()).exists())
d->selectedFiles->addToSelection( **dit );
@@ -1113,2 +1119,3 @@ void PlayListWidget::readm3u(const QString &filename) {
s=s.right(s.length()-2);
+ if(QFile(s).exists()) {
DocLnk lnk( s );
@@ -1123,2 +1130,3 @@ void PlayListWidget::readm3u(const QString &filename) {
d->selectedFiles->addToSelection( lnk);
+ }
} else { // is url