-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index ccf654f..1138dc2 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -554,8 +554,10 @@ void PlayListWidget::addSelected() { | |||
554 | lnk.setName( QFileInfo(filename).baseName() ); //sets name | 554 | lnk.setName( QFileInfo(filename).baseName() ); //sets name |
555 | lnk.setFile( filename ); //sets file name | 555 | lnk.setFile( filename ); //sets file name |
556 | d->selectedFiles->addToSelection( lnk); | 556 | d->selectedFiles->addToSelection( lnk); |
557 | |||
557 | } | 558 | } |
558 | } | 559 | } |
560 | audioView->clearSelection(); | ||
559 | } | 561 | } |
560 | break; | 562 | break; |
561 | 563 | ||
@@ -563,14 +565,13 @@ void PlayListWidget::addSelected() { | |||
563 | QListViewItemIterator it( videoView ); | 565 | QListViewItemIterator it( videoView ); |
564 | for ( ; it.current(); ++it ) { | 566 | for ( ; it.current(); ++it ) { |
565 | if ( it.current()->isSelected() ) { | 567 | if ( it.current()->isSelected() ) { |
566 | // myFile = (*it); | ||
567 | |||
568 | filename=it.current()->text(3); | 568 | filename=it.current()->text(3); |
569 | lnk.setName( QFileInfo(filename).baseName() ); //sets name | 569 | lnk.setName( QFileInfo(filename).baseName() ); //sets name |
570 | lnk.setFile( filename ); //sets file name | 570 | lnk.setFile( filename ); //sets file name |
571 | d->selectedFiles->addToSelection( lnk); | 571 | d->selectedFiles->addToSelection( lnk); |
572 | } | 572 | } |
573 | } | 573 | } |
574 | videoView->clearSelection(); | ||
574 | } | 575 | } |
575 | break; | 576 | break; |
576 | }; | 577 | }; |