diff --git a/app/main.cpp b/app/main.cpp index aceb981..c648430 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -52,5 +52,8 @@ int main(int argc, char *argv[]) engine.load(QUrl("qrc:/main.qml")); + // Quit the application when the engine closes. + QObject::connect((QObject*) &engine, SIGNAL(quit()), (QObject*) &app, SLOT(quit())); + return app.exec(); }