aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/filesystemwatcher.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <[email protected]>2019-01-10 09:20:24 +0100
committerChristian Kandeler <[email protected]>2019-01-10 10:01:53 +0000
commit1dbf1fe5234264dfad41c2eb1a7afeed3622de97 (patch)
tree07cd2d2eb93f55c080bd225f2ab2dffda8585d5a /src/libs/utils/filesystemwatcher.cpp
parentc6a6c12f052b05762b92775e1f19b546a3788d8e (diff)
FileSystemWatcher: Prevent slot execution on deleted object
Amends 1f974bdbbf. Change-Id: I0cdb7a096f8af62c066b6c251ac7755a4cb359a1 Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/libs/utils/filesystemwatcher.cpp')
-rw-r--r--src/libs/utils/filesystemwatcher.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/utils/filesystemwatcher.cpp b/src/libs/utils/filesystemwatcher.cpp
index af36f31ce8f..45ad77ec58f 100644
--- a/src/libs/utils/filesystemwatcher.cpp
+++ b/src/libs/utils/filesystemwatcher.cpp
@@ -142,6 +142,7 @@ public:
{
QObject::connect(Utils::GlobalFileChangeBlocker::instance(),
&Utils::GlobalFileChangeBlocker::stateChanged,
+ q,
[this](bool blocked) { autoReloadPostponed(blocked); });
}