1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-03-20 09:39:07 +00:00

Fix: send application quit event when qml engine is closed.

This commit is contained in:
Filippo Scognamiglio 2014-12-21 16:32:55 +01:00
parent 17f37b48e7
commit 8ed9a33bcd

View File

@ -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();
}