diff options
author | Arno <am@disconnect.de> | 2013-03-21 17:57:15 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-03-21 17:57:15 +0100 |
commit | 7e23cbf95d125fc6325d73b6bee9551a1dd6fb79 (patch) | |
tree | b36674dd33bf8850aba4488deb1bab11f2ed1151 /smdirwatcher.cpp | |
parent | ce402f298b2f9733b614fbf1bde99a052d0ab5c0 (diff) | |
download | SheMov-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.cpp | 2 |
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); } |