Ticket #9: let the demo application close gracefully when choosing File->Quit or...
[bertos.git] / emul / emulwin.cpp
index b5b516a6cd70bb7c984315aa5c9f53f0110b5b48..b5f57cd455a61fd328355a7418cb8ea99e6a35ad 100644 (file)
@@ -111,6 +111,7 @@ EmulWin::~EmulWin()
 
 void EmulWin::closeEvent(QCloseEvent *ce)
 {
+       emul->quit();
        ce->accept();
 }