-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 18 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.h | 2 |
2 files changed, 13 insertions, 7 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index c2b5c77..6bedb57 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp @@ -158,2 +158,4 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl ) audioScan=false; + audioPopulated=false; + videoPopulated=false; populateSkinsMenu(); @@ -620,4 +622,4 @@ void PlayListWidget::tabChanged(QWidget *) { { - audioView->clear(); - populateAudioView(); + // audioView->clear(); + if(!audioPopulated) populateAudioView(); @@ -632,4 +634,4 @@ void PlayListWidget::tabChanged(QWidget *) { { - videoView->clear(); - populateVideoView(); + // videoView->clear(); + if(!videoPopulated) populateVideoView(); if( !tbDeletePlaylist->isHidden() ) { @@ -688,3 +690,4 @@ void PlayListWidget::scanForAudio() { Global::findDocuments( &files, audioMimes); - audioScan = TRUE; + audioScan = true; + populateAudioView(); } @@ -699,3 +702,4 @@ void PlayListWidget::scanForVideo() { Global::findDocuments(&vFiles, "video/*"); - videoScan = TRUE; + videoScan = true; + populateVideoView(); } @@ -736,2 +740,3 @@ void PlayListWidget::populateAudioView() { } + audioPopulated=true; } @@ -770,2 +775,3 @@ void PlayListWidget::populateVideoView() { } + videoPopulated=true; } diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h index 53be7a7..b2c389e 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.h +++ b/noncore/multimedia/opieplayer2/playlistwidget.h @@ -82,3 +82,3 @@ private: int defaultSkinIndex; - bool audioScan, videoScan; + bool audioScan, videoScan, audioPopulated, videoPopulated; void readm3u(const QString &); |