summaryrefslogtreecommitdiffstats
path: root/smdirmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smdirmodel.cpp')
-rw-r--r--smdirmodel.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/smdirmodel.cpp b/smdirmodel.cpp
index 6a7ac39..fc227dd 100644
--- a/smdirmodel.cpp
+++ b/smdirmodel.cpp
@@ -167,7 +167,7 @@ void SmDirModel::readSettings(){
interval *= 1000;
mRefreshTimer->setInterval(interval);
mRefreshTimer->start();
- connect(mRefreshTimer, SIGNAL(timeout()), this, SLOT(refresh()));
+ connect(mRefreshTimer, SIGNAL(timeout()), this, SLOT(refreshFromTimer()));
}
}
@@ -175,6 +175,12 @@ void SmDirModel::refresh(){
setDir(mCurrentDir);
}
+void SmDirModel::refreshFromTimer(){
+ mCollector->setShowProgress(false);
+ setDir(mCurrentDir);
+ mCollector->setShowProgress(true);
+}
+
void SmDirModel::setCheckForPresent(bool check){
mCollector->setCheckForPresent(check);
}