summaryrefslogtreecommitdiff
path: root/src/MainWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/MainWindow.h')
-rw-r--r--src/MainWindow.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/MainWindow.h b/src/MainWindow.h
index f555906..2c43856 100644
--- a/src/MainWindow.h
+++ b/src/MainWindow.h
@@ -157,4 +157,19 @@ public slots:
void autoReloadSet(bool);
};
+class GuiLocker
+{
+public:
+ GuiLocker() {
+ gui_locked++;
+ }
+ ~GuiLocker() {
+ gui_locked--;
+ }
+ static bool isLocked() { return gui_locked > 0; }
+
+private:
+ static unsigned int gui_locked;
+};
+
#endif
contact: Jan Huwald // Impressum