summaryrefslogtreecommitdiffstats
path: root/smdirwatcher.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-03-21 17:57:15 +0100
committerArno <am@disconnect.de>2013-03-21 17:57:15 +0100
commit7e23cbf95d125fc6325d73b6bee9551a1dd6fb79 (patch)
treeb36674dd33bf8850aba4488deb1bab11f2ed1151 /smdirwatcher.cpp
parentce402f298b2f9733b614fbf1bde99a052d0ab5c0 (diff)
downloadSheMov-7e23cbf95d125fc6325d73b6bee9551a1dd6fb79.tar.gz
SheMov-7e23cbf95d125fc6325d73b6bee9551a1dd6fb79.tar.bz2
SheMov-7e23cbf95d125fc6325d73b6bee9551a1dd6fb79.zip
Implement auto refresh
Since inotify isn't completely implemented for cifs mounts, implement auto refresh for FileView. Default is 5 seconds.
Diffstat (limited to 'smdirwatcher.cpp')
-rw-r--r--smdirwatcher.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/smdirwatcher.cpp b/smdirwatcher.cpp
index 8b72aab..069ebfe 100644
--- a/smdirwatcher.cpp
+++ b/smdirwatcher.cpp
@@ -37,6 +37,8 @@ SmDirWatcher::SmDirWatcher(QObject *parent) : QThread(parent), mFd(0), mDescr(0)
}
SmDirWatcher::~SmDirWatcher(){
+ mCollector->terminate();
+ mCollector->wait();
if(mFd && mDescr){
inotify_rm_watch(mFd, mDescr);
}