aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-09-25 12:24:29 -0400
committerKen Moore <moorekou@gmail.com>2015-09-25 12:24:29 -0400
commitf742330ae3a676ec4714e9680f17db9b65037075 (patch)
tree08af1b5870a364f970df28d876aa62095590bbf9 /lumina-fm
parentChange how the thumbnails are loaded in lumina-fm. Now it loads the entire di... (diff)
downloadlumina-f742330ae3a676ec4714e9680f17db9b65037075.tar.gz
lumina-f742330ae3a676ec4714e9680f17db9b65037075.tar.bz2
lumina-f742330ae3a676ec4714e9680f17db9b65037075.zip
Quick update to just clear that internal "needThumbs" variable every time the dir loads - it gets rebuild later on when loading the items into the viewer.
Diffstat (limited to 'lumina-fm')
-rw-r--r--lumina-fm/widgets/DirWidget.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lumina-fm/widgets/DirWidget.cpp b/lumina-fm/widgets/DirWidget.cpp
index fc390895..ccca4c17 100644
--- a/lumina-fm/widgets/DirWidget.cpp
+++ b/lumina-fm/widgets/DirWidget.cpp
@@ -263,10 +263,10 @@ void DirWidget::LoadDir(QString dir, QList<LFileInfo> list){
//Clear the display widget (if a new directory)
if(DEBUG){ qDebug() << "Clear Browser Widget:" << time.elapsed(); }
double scrollpercent = -1;
+ needThumbs.clear();
if(lastbasedir != normalbasedir){
if(showDetails){ treeWidget->clear(); }
else{ listWidget->clear(); }
- needThumbs.clear();
QApplication::processEvents(); //make sure it is cleared right away
}else{
//Need to be smarter about which items need to be removed
@@ -276,7 +276,6 @@ void DirWidget::LoadDir(QString dir, QList<LFileInfo> list){
if(showDetails){
for(int i=0; i<treeWidget->topLevelItemCount(); i++){
if( !newfiles.contains(treeWidget->topLevelItem(i)->whatsThis(0).section("/",-1)) ){
- if( needThumbs.contains(treeWidget->topLevelItem(i)->whatsThis(0)) ){ needThumbs.removeAll(treeWidget->topLevelItem(i)->whatsThis(0)); }
delete treeWidget->takeTopLevelItem(i);
i--;
}
@@ -286,7 +285,6 @@ void DirWidget::LoadDir(QString dir, QList<LFileInfo> list){
}else{
for(int i=0; i<listWidget->count(); i++){
if( !newfiles.contains(listWidget->item(i)->text()) ){
- if( needThumbs.contains(listWidget->item(i)->whatsThis()) ){ needThumbs.removeAll(listWidget->item(i)->whatsThis()); }
delete listWidget->takeItem(i);
i--;
}
bgstack15