diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-05-04 11:57:19 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-05-04 11:57:19 +0200 |
commit | 9ec8acf38a6c09d1d7239146fc115bcef938a64d (patch) | |
tree | 6958770e5e8ac022a209cac5d03d3cc7f4ab0b77 | |
parent | ee4cd1270faa9a9024b4e700bce09cd451d23019 (diff) |
no need to _Exit() forcefully anymore
-rw-r--r-- | facetracknoir/main.cpp | 4 | ||||
-rw-r--r-- | facetracknoir/ui.cpp | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp index 9c2ced45..ae237b61 100644 --- a/facetracknoir/main.cpp +++ b/facetracknoir/main.cpp @@ -28,9 +28,9 @@ int main(int argc, char** argv) QApplication::setAttribute(Qt::AA_X11InitThreads, true); QApplication app(argc, argv); - auto w = std::make_shared<MainWindow>(); + MainWindow w; - w->show(); + w.show(); app.exec(); return 0; diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp index 54e4646e..037e2f5a 100644 --- a/facetracknoir/ui.cpp +++ b/facetracknoir/ui.cpp @@ -88,7 +88,6 @@ MainWindow::~MainWindow() tray->hide(); stopTracker(); save(); - _exit(0); } void MainWindow::set_working_directory() |