mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-03-21 18:18:44 +00:00
Fix: send application quit event when qml engine is closed.
This commit is contained in:
parent
17f37b48e7
commit
8ed9a33bcd
@ -52,5 +52,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
engine.load(QUrl("qrc:/main.qml"));
|
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();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user