summaryrefslogtreecommitdiffstats
path: root/tdecore/ksimpledirwatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/ksimpledirwatch.cpp')
-rw-r--r--tdecore/ksimpledirwatch.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tdecore/ksimpledirwatch.cpp b/tdecore/ksimpledirwatch.cpp
index 3861b52d2..cbb4ce682 100644
--- a/tdecore/ksimpledirwatch.cpp
+++ b/tdecore/ksimpledirwatch.cpp
@@ -1501,10 +1501,14 @@ void KSimpleDirWatchPrivate::checkFAMEvent(FAMEvent* fe)
removeEntry(0,e->path,sub_entry); // <e> can be invalid here!!
sub_entry->m_status = Normal;
if (!useFAM(sub_entry))
+ {
#ifdef HAVE_INOTIFY
if (!useINotify(sub_entry ))
#endif
+ {
useStat(sub_entry);
+ }
+ }
}
break;
}