summaryrefslogtreecommitdiffstats
path: root/smdirmodel.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-08-28 11:10:58 +0200
committerArno <am@disconnect.de>2013-08-28 11:10:58 +0200
commit2cc92200386c55818cbe9bcb7d2e488170317d70 (patch)
treeabead086c71b8821bf4f8d5a7f076875d7ba24fb /smdirmodel.cpp
parent00084a82f08ea72bafc6c002422c8f49bdeb1742 (diff)
downloadSheMov-2cc92200386c55818cbe9bcb7d2e488170317d70.tar.gz
SheMov-2cc92200386c55818cbe9bcb7d2e488170317d70.tar.bz2
SheMov-2cc92200386c55818cbe9bcb7d2e488170317d70.zip
Don't show progress dialog when we're polling
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);
}