summaryrefslogtreecommitdiffstats
path: root/src/input/pvsCheckPrivileges.h
diff options
context:
space:
mode:
authorSebastien Braun2010-10-06 15:09:43 +0200
committerSebastien Braun2010-10-06 15:09:43 +0200
commitc5c91f40c02d7b8611fb5e479f340fe19254592f (patch)
tree47384add2533c27506f673929c18af3726127f57 /src/input/pvsCheckPrivileges.h
parentRefactor signal handling in pvsprivinputd (diff)
downloadpvs-c5c91f40c02d7b8611fb5e479f340fe19254592f.tar.gz
pvs-c5c91f40c02d7b8611fb5e479f340fe19254592f.tar.xz
pvs-c5c91f40c02d7b8611fb5e479f340fe19254592f.zip
Fix deletion order bug
PVSCheckPrivileges::instance() is statically allocated. When it is deleted, the QCoreApplication is already gone (since it is stack- allocated), and the destructor of QFileSystemWatcher waits forever.
Diffstat (limited to 'src/input/pvsCheckPrivileges.h')
-rw-r--r--src/input/pvsCheckPrivileges.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/pvsCheckPrivileges.h b/src/input/pvsCheckPrivileges.h
index fc82e4c..ec6c591 100644
--- a/src/input/pvsCheckPrivileges.h
+++ b/src/input/pvsCheckPrivileges.h
@@ -114,6 +114,7 @@ public:
}
static PVSCheckPrivileges* instance();
+ static void deleteInstance();
bool require(SessionKind sessionKind, CachedInputContext const& sender);
bool require(UserPrivilege userPrivilege, CachedInputContext const& sender);