mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-11-04 09:02:14 +00:00 
			
		
		
		
	Fix: send application quit event when qml engine is closed.
This commit is contained in:
		@@ -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();
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user