From 13cbbceac598c7c94ef3ea975b3f65809195f18a Mon Sep 17 00:00:00 2001 From: Rasim Labibov Date: Mon, 30 Oct 2017 17:29:30 +0200 Subject: [PATCH] Clean up --- src/main.cpp | 16 +--------------- src/stdafx.h | 2 -- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 src/stdafx.h diff --git a/src/main.cpp b/src/main.cpp index a255165..41f9da7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,3 @@ -#include "stdafx.h" #include #include #include @@ -10,19 +9,6 @@ int main(int argc, char** argv) QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); - int result = 0; - - try - { - result = app.exec(); - } - catch(const std::exception& ex) - { - QString message = ex.what(); - QMessageBox::critical(nullptr, qtTrId("Error"), message); - result = -1; - } - - return result; + return app.exec(); } diff --git a/src/stdafx.h b/src/stdafx.h deleted file mode 100644 index 3f59c93..0000000 --- a/src/stdafx.h +++ /dev/null @@ -1,2 +0,0 @@ -#pragma once -