summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 60eb0c8..86130d5 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -515,28 +515,28 @@ void PlayListWidget::addToSelection( QListViewItem *it) {
515 case 1: { 515 case 1: {
516 QListIterator<DocLnk> dit( files.children() ); 516 QListIterator<DocLnk> dit( files.children() );
517 for ( ; dit.current(); ++dit ) { 517 for ( ; dit.current(); ++dit ) {
518 if( dit.current()->name() == it->text(0)) { 518 if( dit.current()->name() == it->text(0)) {
519 if(QFileInfo( dit.current()->file()).exists()) { 519 if(QFileInfo( dit.current()->file()).exists()) {
520 d->selectedFiles->addToSelection( **dit ); 520 d->selectedFiles->addToSelection( **dit );
521 qDebug("blah "+ dit.current()->name()); 521// qDebug("blah "+ dit.current()->name());
522 d->selectedFiles->setSelectedItem( dit.current()->name()); 522// d->selectedFiles->setSelectedItem( dit.current()->name());
523 } 523 }
524 } 524 }
525 } 525 }
526 writeCurrentM3u(); 526 writeCurrentM3u();
527 } 527 }
528 break; 528 break;
529 case 2: { 529 case 2: {
530 QListIterator<DocLnk> dit( vFiles.children() ); 530 QListIterator<DocLnk> dit( vFiles.children() );
531 for ( ; dit.current(); ++dit ) { 531 for ( ; dit.current(); ++dit ) {
532 if( dit.current()->name() == it->text(0)) { 532 if( dit.current()->name() == it->text(0)) {
533 if( QFileInfo( dit.current()->file()).exists() ) { 533 if( QFileInfo( dit.current()->file()).exists() ) {
534 d->selectedFiles->addToSelection( **dit ); 534 d->selectedFiles->addToSelection( **dit );
535 qDebug("blah "+ dit.current()->name()); 535// qDebug("blah "+ dit.current()->name());
536 d->selectedFiles->setSelectedItem( dit.current()->name()); 536// d->selectedFiles->setSelectedItem( dit.current()->name());
537 } 537 }
538 } 538 }
539 } 539 }
540 writeCurrentM3u(); 540 writeCurrentM3u();
541 541
542 } 542 }
@@ -749,13 +749,13 @@ void PlayListWidget::openFile() {
749 lnk.setFile( filename ); //sets file name 749 lnk.setFile( filename ); //sets file name
750 750
751// lnk.setIcon("opieplayer2/musicfile"); 751// lnk.setIcon("opieplayer2/musicfile");
752 752
753 d->selectedFiles->addToSelection( lnk ); 753 d->selectedFiles->addToSelection( lnk );
754 writeCurrentM3u(); 754 writeCurrentM3u();
755 d->selectedFiles->setSelectedItem( lnk->name()); 755 d->selectedFiles->setSelectedItem( lnk.name());
756 } 756 }
757 else if( filename.right( 3) == "m3u" ) { 757 else if( filename.right( 3) == "m3u" ) {
758 readm3u( filename ); 758 readm3u( filename );
759 759
760 } else if( filename.right(3) == "pls" ) { 760 } else if( filename.right(3) == "pls" ) {
761 readPls( filename ); 761 readPls( filename );