-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index c9ae225..a8429e3 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -607,64 +607,65 @@ void PlayListWidget::tabChanged(QWidget *) { | |||
607 | d->tbAddToList->setEnabled(FALSE); | 607 | d->tbAddToList->setEnabled(FALSE); |
608 | } | 608 | } |
609 | break; | 609 | break; |
610 | case 1: | 610 | case 1: |
611 | { | 611 | { |
612 | // audioView->clear(); | 612 | // audioView->clear(); |
613 | if(!audioPopulated) populateAudioView(); | 613 | if(!audioPopulated) populateAudioView(); |
614 | 614 | ||
615 | if( !tbDeletePlaylist->isHidden() ) { | 615 | if( !tbDeletePlaylist->isHidden() ) { |
616 | tbDeletePlaylist->hide(); | 616 | tbDeletePlaylist->hide(); |
617 | } | 617 | } |
618 | d->tbRemoveFromList->setEnabled(FALSE); | 618 | d->tbRemoveFromList->setEnabled(FALSE); |
619 | d->tbAddToList->setEnabled(TRUE); | 619 | d->tbAddToList->setEnabled(TRUE); |
620 | } | 620 | } |
621 | break; | 621 | break; |
622 | case 2: | 622 | case 2: |
623 | { | 623 | { |
624 | // videoView->clear(); | 624 | // videoView->clear(); |
625 | if(!videoPopulated) populateVideoView(); | 625 | if(!videoPopulated) populateVideoView(); |
626 | if( !tbDeletePlaylist->isHidden() ) { | 626 | if( !tbDeletePlaylist->isHidden() ) { |
627 | tbDeletePlaylist->hide(); | 627 | tbDeletePlaylist->hide(); |
628 | } | 628 | } |
629 | d->tbRemoveFromList->setEnabled(FALSE); | 629 | d->tbRemoveFromList->setEnabled(FALSE); |
630 | d->tbAddToList->setEnabled(TRUE); | 630 | d->tbAddToList->setEnabled(TRUE); |
631 | } | 631 | } |
632 | break; | 632 | break; |
633 | case 3: | 633 | case 3: |
634 | { | 634 | { |
635 | if( tbDeletePlaylist->isHidden() ) { | 635 | if( tbDeletePlaylist->isHidden() ) { |
636 | tbDeletePlaylist->show(); | 636 | tbDeletePlaylist->show(); |
637 | } | 637 | } |
638 | playLists->reread(); | 638 | playLists->reread(); |
639 | d->tbAddToList->setEnabled(FALSE); | ||
639 | } | 640 | } |
640 | break; | 641 | break; |
641 | }; | 642 | }; |
642 | } | 643 | } |
643 | 644 | ||
644 | 645 | ||
645 | void PlayListWidget::btnPlay(bool b) { | 646 | void PlayListWidget::btnPlay(bool b) { |
646 | // mediaPlayerState->setPlaying(false); | 647 | // mediaPlayerState->setPlaying(false); |
647 | mediaPlayerState->setPlaying(b); | 648 | mediaPlayerState->setPlaying(b); |
648 | insanityBool=FALSE; | 649 | insanityBool=FALSE; |
649 | } | 650 | } |
650 | 651 | ||
651 | void PlayListWidget::deletePlaylist() { | 652 | void PlayListWidget::deletePlaylist() { |
652 | switch( QMessageBox::information( this, (tr("Remove Playlist?")), | 653 | switch( QMessageBox::information( this, (tr("Remove Playlist?")), |
653 | (tr("You really want to delete\nthis playlist?")), | 654 | (tr("You really want to delete\nthis playlist?")), |
654 | (tr("Yes")), (tr("No")), 0 )){ | 655 | (tr("Yes")), (tr("No")), 0 )){ |
655 | case 0: // Yes clicked, | 656 | case 0: // Yes clicked, |
656 | QFile().remove(playLists->selectedDocument().file()); | 657 | QFile().remove(playLists->selectedDocument().file()); |
657 | QFile().remove(playLists->selectedDocument().linkFile()); | 658 | QFile().remove(playLists->selectedDocument().linkFile()); |
658 | playLists->reread(); | 659 | playLists->reread(); |
659 | break; | 660 | break; |
660 | case 1: // Cancel | 661 | case 1: // Cancel |
661 | break; | 662 | break; |
662 | }; | 663 | }; |
663 | } | 664 | } |
664 | 665 | ||
665 | 666 | ||
666 | void PlayListWidget::playSelected() { | 667 | void PlayListWidget::playSelected() { |
667 | btnPlay( TRUE); | 668 | btnPlay( TRUE); |
668 | } | 669 | } |
669 | 670 | ||
670 | 671 | ||