summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistfileview.h4
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp20
2 files changed, 4 insertions, 20 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistfileview.h b/noncore/multimedia/opieplayer2/playlistfileview.h
index abe1bb8..6eea2fc 100644
--- a/noncore/multimedia/opieplayer2/playlistfileview.h
+++ b/noncore/multimedia/opieplayer2/playlistfileview.h
@@ -12,10 +12,6 @@ public:
12 PlayListFileView( const QString &mimeTypePattern, const QString &itemPixmapName, QWidget *parent, const char *name = 0 ); 12 PlayListFileView( const QString &mimeTypePattern, const QString &itemPixmapName, QWidget *parent, const char *name = 0 );
13 virtual ~PlayListFileView(); 13 virtual ~PlayListFileView();
14 14
15 // both temporarily accessible that way until the caller code has
16 // been migrated into this class
17 bool &scannedFiles() { return m_scannedFiles; }
18
19public slots: 15public slots:
20 void scanFiles(); 16 void scanFiles();
21 void populateView(); 17 void populateView();
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index eb0606d..e754067 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -250,10 +250,7 @@ void PlayListWidget::addAllToList() {
250// QTime t; 250// QTime t;
251// t.start(); 251// t.start();
252 252
253 if(!audioView->scannedFiles()) { 253 audioView->populateView();
254 if(audioView->childCount() < 1)
255 audioView->populateView();
256 }
257 254
258 QListViewItemIterator audioIt( audioView ); 255 QListViewItemIterator audioIt( audioView );
259 DocLnk lnk; 256 DocLnk lnk;
@@ -266,10 +263,7 @@ void PlayListWidget::addAllToList() {
266 d->selectedFiles->addToSelection( lnk); 263 d->selectedFiles->addToSelection( lnk);
267 } 264 }
268 265
269 if(!videoView->scannedFiles()) { 266 videoView->populateView();
270 if(videoView->childCount() < 1)
271 videoView->populateView();
272 }
273 267
274 QListViewItemIterator videoIt( videoView ); 268 QListViewItemIterator videoIt( videoView );
275 for ( ; videoIt.current(); ++videoIt ) { 269 for ( ; videoIt.current(); ++videoIt ) {
@@ -310,10 +304,7 @@ void PlayListWidget::addAllToList() {
310 304
311void PlayListWidget::addAllMusicToList() { 305void PlayListWidget::addAllMusicToList() {
312 306
313 if(!audioView->scannedFiles()) { 307 audioView->populateView();
314 if(audioView->childCount() < 1)
315 audioView->populateView();
316 }
317 308
318 QListViewItemIterator audioIt( audioView ); 309 QListViewItemIterator audioIt( audioView );
319 DocLnk lnk; 310 DocLnk lnk;
@@ -343,10 +334,7 @@ void PlayListWidget::addAllMusicToList() {
343 334
344void PlayListWidget::addAllVideoToList() { 335void PlayListWidget::addAllVideoToList() {
345 336
346 if(!videoView->scannedFiles()) { 337 videoView->populateView();
347 if(videoView->childCount() < 1)
348 videoView->populateView();
349 }
350 338
351 QListViewItemIterator videoIt( videoView ); 339 QListViewItemIterator videoIt( videoView );
352 DocLnk lnk; 340 DocLnk lnk;