summaryrefslogtreecommitdiffstats
path: root/smdirmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smdirmodel.cpp')
-rw-r--r--smdirmodel.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/smdirmodel.cpp b/smdirmodel.cpp
index 32bc241..b9394d8 100644
--- a/smdirmodel.cpp
+++ b/smdirmodel.cpp
@@ -215,3 +215,14 @@ TimerHandler::~TimerHandler(){
mTimer->start();
}
}
+
+WatcherHandler::WatcherHandler(SmDirWatcher *watcher) : mWatcher(watcher){
+ mWatcher->quit();
+ mWatcher->wait();
+ mWatcher->blockSignals(true);
+}
+
+WatcherHandler::~WatcherHandler(){
+ mWatcher->blockSignals(false);
+ mWatcher->start();
+}