Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp index 930560e..d7447b7 100644 --- a/core/multimedia/opieplayer/playlistwidget.cpp +++ b/core/multimedia/opieplayer/playlistwidget.cpp | |||
@@ -841,6 +841,5 @@ void PlayListWidget::btnPlay(bool b) { | |||
841 | case 1: | 841 | case 1: |
842 | { | 842 | { |
843 | // if(audioView->selectedItem()) { | 843 | addToSelection( audioView->currentItem() ); |
844 | addToSelection( audioView->selectedItem() ); | ||
845 | mediaPlayerState->setPlaying(b); | 844 | mediaPlayerState->setPlaying(b); |
846 | d->selectedFiles->removeSelected( ); | 845 | d->selectedFiles->removeSelected( ); |
@@ -849,11 +848,9 @@ void PlayListWidget::btnPlay(bool b) { | |||
849 | insanityBool=FALSE; | 848 | insanityBool=FALSE; |
850 | // audioView->clearSelection(); | 849 | // audioView->clearSelection(); |
851 | // } | ||
852 | } | 850 | } |
853 | break; | 851 | break; |
854 | case 2: | 852 | case 2: |
855 | { | 853 | { |
856 | // if(videoView->selectedItem() ) { | 854 | addToSelection( videoView->currentItem() ); |
857 | addToSelection( videoView->selectedItem() ); | ||
858 | mediaPlayerState->setPlaying(b); | 855 | mediaPlayerState->setPlaying(b); |
859 | qApp->processEvents(); | 856 | qApp->processEvents(); |
@@ -863,5 +860,4 @@ void PlayListWidget::btnPlay(bool b) { | |||
863 | insanityBool=FALSE; | 860 | insanityBool=FALSE; |
864 | // videoView->clearSelection(); | 861 | // videoView->clearSelection(); |
865 | // } | ||
866 | } | 862 | } |
867 | break; | 863 | break; |
@@ -889,4 +885,5 @@ void PlayListWidget::viewPressed( int mouse, QListViewItem *item, const QPoint& | |||
889 | break; | 885 | break; |
890 | case 2:{ | 886 | case 2:{ |
887 | |||
891 | QPopupMenu m; | 888 | QPopupMenu m; |
892 | m.insertItem( tr( "Play" ), this, SLOT( playSelected() )); | 889 | m.insertItem( tr( "Play" ), this, SLOT( playSelected() )); |