Commit 8c38adb7 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(main): use `return` instead of `exit` (avoid segfault)

parent bfe5579b
......@@ -11,7 +11,7 @@ int main (int argc, char *argv[]) {
QQmlApplicationEngine engine(QUrl("qrc:/ui/views/main_window.qml"));
if (engine.rootObjects().isEmpty())
exit(EXIT_FAILURE);
return EXIT_FAILURE;
exit(app.exec());
return app.exec();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment