author | bipolar <bipolar> | 2002-03-03 20:00:13 (UTC) |
---|---|---|
committer | bipolar <bipolar> | 2002-03-03 20:00:13 (UTC) |
commit | 1c2cb5505bd88b1f38cf65936486a73081da8cf4 (patch) (unidiff) | |
tree | 876541302b9d1c5e0be619cc44338f2538d68c58 | |
parent | 86ade8478229710d4a31d1c0604b79565935734e (diff) | |
download | opie-1c2cb5505bd88b1f38cf65936486a73081da8cf4.zip opie-1c2cb5505bd88b1f38cf65936486a73081da8cf4.tar.gz opie-1c2cb5505bd88b1f38cf65936486a73081da8cf4.tar.bz2 |
committed by ljp (llornkcor): small fix for player redraw not going so well
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp index ae03ec8..de36551 100644 --- a/core/multimedia/opieplayer/playlistwidget.cpp +++ b/core/multimedia/opieplayer/playlistwidget.cpp | |||
@@ -716,40 +716,42 @@ void PlayListWidget::fauxPlay(QListViewItem *it) { | |||
716 | d->selectedFiles->removeSelected(); | 716 | d->selectedFiles->removeSelected(); |
717 | } | 717 | } |
718 | 718 | ||
719 | /* | 719 | /* |
720 | play button is pressed*/ | 720 | play button is pressed*/ |
721 | void PlayListWidget::btnPlay(bool b) { // this is fugly | 721 | void PlayListWidget::btnPlay(bool b) { // this is fugly |
722 | switch ( tabWidget->currentPageIndex()) { | 722 | switch ( tabWidget->currentPageIndex()) { |
723 | case 0: | 723 | case 0: |
724 | { | 724 | { |
725 | mediaPlayerState->setPlaying(b); | 725 | mediaPlayerState->setPlaying(b); |
726 | } | 726 | } |
727 | break; | 727 | break; |
728 | case 1: | 728 | case 1: |
729 | { | 729 | { |
730 | addToSelection( audioView->selectedItem() ); | 730 | addToSelection( audioView->selectedItem() ); |
731 | mediaPlayerState->setPlaying(b); | 731 | mediaPlayerState->setPlaying(b); |
732 | qApp->processEvents(); | ||
732 | d->selectedFiles->removeSelected( ); | 733 | d->selectedFiles->removeSelected( ); |
733 | tabWidget->setCurrentPage(1); | 734 | tabWidget->setCurrentPage(1); |
734 | } | 735 | } |
735 | break; | 736 | break; |
736 | case 2: | 737 | case 2: |
737 | { | 738 | { |
738 | addToSelection( videoView->selectedItem() ); | 739 | addToSelection( videoView->selectedItem() ); |
739 | mediaPlayerState->setPlaying(b); | 740 | mediaPlayerState->setPlaying(b); |
741 | qApp->processEvents(); | ||
740 | d->selectedFiles->removeSelected( ); | 742 | d->selectedFiles->removeSelected( ); |
741 | tabWidget->setCurrentPage(2); | 743 | tabWidget->setCurrentPage(2); |
742 | } | 744 | } |
743 | break; | 745 | break; |
744 | }; | 746 | }; |
745 | 747 | ||
746 | } | 748 | } |
747 | 749 | ||
748 | void PlayListWidget::deletePlaylist() { | 750 | void PlayListWidget::deletePlaylist() { |
749 | switch( QMessageBox::information( this, (tr("Remove Playlist?")), | 751 | switch( QMessageBox::information( this, (tr("Remove Playlist?")), |
750 | (tr("You really want to delete\nthis playlist?")), | 752 | (tr("You really want to delete\nthis playlist?")), |
751 | (tr("Yes")), (tr("No")), 0 )){ | 753 | (tr("Yes")), (tr("No")), 0 )){ |
752 | case 0: // Yes clicked, | 754 | case 0: // Yes clicked, |
753 | QFile().remove(playLists->selected()->file()); | 755 | QFile().remove(playLists->selected()->file()); |
754 | QFile().remove(playLists->selected()->linkFile()); | 756 | QFile().remove(playLists->selected()->linkFile()); |
755 | playLists->reread(); | 757 | playLists->reread(); |