summaryrefslogtreecommitdiff
path: root/src/miav.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/miav.cc')
-rw-r--r--src/miav.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/miav.cc b/src/miav.cc
index dbb8b28..2efd2bf 100644
--- a/src/miav.cc
+++ b/src/miav.cc
@@ -47,6 +47,9 @@ typedef enum {
MODE_SERVER
} run_mode;
+#ifdef USE_GUI
+QApplication *miav_app;
+#endif/*USE_GUI*/
/**
* This function starts the MIaV gui.
@@ -55,6 +58,7 @@ int grab(int argc, char *argv[]) {
#ifdef USE_GUI
QApplication miav_grab( argc, argv );
+ miav_app = &miav_grab;
MiavConfig cfg(ETC"/miav.conf", NULL);
InfoGui info(&miav_grab, NULL, &cfg);