summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/main.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/main.cpp
parent8658c2ff987c0656b9b87d966ad1bee8311f7ee4 (diff)
_Exit(0) in ui dtor
Diffstat (limited to 'facetracknoir/main.cpp')
-rw-r--r--facetracknoir/main.cpp16
1 files changed, 4 insertions, 12 deletions
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 <QStringList>
#include <memory>
-#ifndef _WIN32
-# include <unistd.h>
-#else
-# include <windows.h>
-#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<FaceTrackNoIR>();
w->show();
app.exec();
-
- _exit(0);
-
+
return 0;
}