From 9ec8acf38a6c09d1d7239146fc115bcef938a64d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 4 May 2015 11:57:19 +0200 Subject: no need to _Exit() forcefully anymore --- facetracknoir/main.cpp | 4 ++-- facetracknoir/ui.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'facetracknoir') 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 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() -- cgit v1.2.3