summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/facetracknoir.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-22 18:13:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-22 19:17:32 +0200
commit7636c50622f12b5354615db07898d77f04c9cd05 (patch)
treeb83e415df2de14c871ed80937308f23a9dc34532 /facetracknoir/facetracknoir.cpp
parent8658c2ff987c0656b9b87d966ad1bee8311f7ee4 (diff)
_Exit(0) in ui dtor
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-rw-r--r--facetracknoir/facetracknoir.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index f219dd2a..48163a42 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -25,6 +25,12 @@
#include "opentrack/tracker.h"
#include <QFileDialog>
+#ifndef _WIN32
+# include <unistd.h>
+#else
+# include <windows.h>
+#endif
+
FaceTrackNoIR::FaceTrackNoIR() :
pose_update_timer(this),
kbd_quit(QKeySequence("Ctrl+Q"), this),
@@ -77,6 +83,7 @@ FaceTrackNoIR::~FaceTrackNoIR()
{
stopTracker();
save();
+ _exit(0);
}
void FaceTrackNoIR::open() {