From 7636c50622f12b5354615db07898d77f04c9cd05 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 22 Oct 2014 18:13:22 +0200 Subject: _Exit(0) in ui dtor --- facetracknoir/facetracknoir.cpp | 7 +++++++ facetracknoir/main.cpp | 16 ++++------------ 2 files changed, 11 insertions(+), 12 deletions(-) (limited to 'facetracknoir') 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 +#ifndef _WIN32 +# include +#else +# include +#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() { diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp index d8731b58..692ce060 100644 --- a/facetracknoir/main.cpp +++ b/facetracknoir/main.cpp @@ -4,17 +4,11 @@ #include #include -#ifndef _WIN32 -# include -#else -# include -#endif - int main(int argc, char** argv) { // workaround QTBUG-38598 QCoreApplication::addLibraryPath("."); - + // qt5 designer-made controls look like shit on 'doze -sh 20140921 #ifdef _WIN32 { @@ -30,16 +24,14 @@ int main(int argc, char** argv) } } #endif - + QApplication::setAttribute(Qt::AA_X11InitThreads, true); QApplication app(argc, argv); - + auto w = std::make_shared(); w->show(); app.exec(); - - _exit(0); - + return 0; } -- cgit v1.2.3