--- a/src/main.cpp Sun Sep 06 04:48:58 2015 +0300 +++ b/src/main.cpp Sun Sep 06 13:46:39 2015 +0300 @@ -34,9 +34,6 @@ #include "ldpaths.h" MainWindow* g_win = nullptr; -static QString g_versionString, g_fullVersionString; -static bool g_IsExiting (false); - const Vertex Origin (0.0f, 0.0f, 0.0f); const Matrix IdentityMatrix ({1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); @@ -62,18 +59,5 @@ for (int arg = 1; arg < argc; ++arg) OpenMainModel (QString::fromLocal8Bit (argv[arg])); - int result = app.exec(); - g_IsExiting = true; - return result; -} - -bool IsExiting() -{ - return g_IsExiting; -} - -void Exit() -{ - g_IsExiting = true; - exit (EXIT_SUCCESS); -} + return app.exec(); +} \ No newline at end of file