author | llornkcor <llornkcor> | 2002-11-14 02:56:04 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-14 02:56:04 (UTC) |
commit | 4a60497bd689bd01ca301378f382bff6863b592e (patch) (side-by-side diff) | |
tree | 3b9926eb8f6f89b204eaca2a443b6bb9b5e9f883 /noncore/multimedia/opieplayer2/playlistwidget.cpp | |
parent | 3bfb64a41ca7948b593982fc1c266d5ec829b9ab (diff) | |
download | opie-4a60497bd689bd01ca301378f382bff6863b592e.zip opie-4a60497bd689bd01ca301378f382bff6863b592e.tar.gz opie-4a60497bd689bd01ca301378f382bff6863b592e.tar.bz2 |
no longer scans and populates audio_video lists everytime tab is changed. rescan from File menu does it except for the first tab change
Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 18 |
1 files changed, 12 insertions, 6 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; } |