author | simon <simon> | 2002-12-02 16:38:16 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 16:38:16 (UTC) |
commit | cb03905d1be2f8b98f770201bc4cb98f75c80c1d (patch) (unidiff) | |
tree | e2ad2689b12a63e0ac597d394e9ff6d385d817b1 | |
parent | a0cfa5b76aac8de36304faef4bb2b14237c04c9a (diff) | |
download | opie-cb03905d1be2f8b98f770201bc4cb98f75c80c1d.zip opie-cb03905d1be2f8b98f770201bc4cb98f75c80c1d.tar.gz opie-cb03905d1be2f8b98f770201bc4cb98f75c80c1d.tar.bz2 |
- disable 'play' in the play list tab
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index ce73252..b04fe8d 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -585,24 +585,26 @@ void PlayListWidget::addToSelection( QListViewItem *it) { | |||
585 | lnk.setFile( filename ); //sets file name | 585 | lnk.setFile( filename ); //sets file name |
586 | d->selectedFiles->addToSelection( lnk); | 586 | d->selectedFiles->addToSelection( lnk); |
587 | 587 | ||
588 | writeCurrentM3u(); | 588 | writeCurrentM3u(); |
589 | tabWidget->setCurrentPage(0); | 589 | tabWidget->setCurrentPage(0); |
590 | 590 | ||
591 | } | 591 | } |
592 | } | 592 | } |
593 | 593 | ||
594 | 594 | ||
595 | void PlayListWidget::tabChanged(QWidget *) { | 595 | void PlayListWidget::tabChanged(QWidget *) { |
596 | 596 | ||
597 | d->tbPlay->setEnabled( true ); | ||
598 | |||
597 | switch ( currentTab() ) { | 599 | switch ( currentTab() ) { |
598 | case CurrentPlayList: | 600 | case CurrentPlayList: |
599 | { | 601 | { |
600 | if( !tbDeletePlaylist->isHidden() ) { | 602 | if( !tbDeletePlaylist->isHidden() ) { |
601 | tbDeletePlaylist->hide(); | 603 | tbDeletePlaylist->hide(); |
602 | } | 604 | } |
603 | d->tbRemoveFromList->setEnabled(TRUE); | 605 | d->tbRemoveFromList->setEnabled(TRUE); |
604 | d->tbAddToList->setEnabled(FALSE); | 606 | d->tbAddToList->setEnabled(FALSE); |
605 | } | 607 | } |
606 | break; | 608 | break; |
607 | case AudioFiles: | 609 | case AudioFiles: |
608 | { | 610 | { |
@@ -625,24 +627,26 @@ void PlayListWidget::tabChanged(QWidget *) { | |||
625 | } | 627 | } |
626 | d->tbRemoveFromList->setEnabled(FALSE); | 628 | d->tbRemoveFromList->setEnabled(FALSE); |
627 | d->tbAddToList->setEnabled(TRUE); | 629 | d->tbAddToList->setEnabled(TRUE); |
628 | } | 630 | } |
629 | break; | 631 | break; |
630 | case PlayLists: | 632 | case PlayLists: |
631 | { | 633 | { |
632 | if( tbDeletePlaylist->isHidden() ) { | 634 | if( tbDeletePlaylist->isHidden() ) { |
633 | tbDeletePlaylist->show(); | 635 | tbDeletePlaylist->show(); |
634 | } | 636 | } |
635 | playLists->reread(); | 637 | playLists->reread(); |
636 | d->tbAddToList->setEnabled(FALSE); | 638 | d->tbAddToList->setEnabled(FALSE); |
639 | |||
640 | d->tbPlay->setEnabled( false ); | ||
637 | } | 641 | } |
638 | break; | 642 | break; |
639 | }; | 643 | }; |
640 | } | 644 | } |
641 | 645 | ||
642 | 646 | ||
643 | void PlayListWidget::btnPlay(bool b) { | 647 | void PlayListWidget::btnPlay(bool b) { |
644 | // mediaPlayerState->setPlaying(false); | 648 | // mediaPlayerState->setPlaying(false); |
645 | mediaPlayerState->setPlaying(b); | 649 | mediaPlayerState->setPlaying(b); |
646 | insanityBool=FALSE; | 650 | insanityBool=FALSE; |
647 | } | 651 | } |
648 | 652 | ||