From: lmancini Date: Tue, 18 Mar 2008 11:56:18 +0000 (+0000) Subject: Ticket #9: let the demo application close gracefully when choosing File->Quit or... X-Git-Tag: 1.0.0~54 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;ds=inline;h=7e72e35e163aed8caa515e3e34bacdd66ea60ae6;p=bertos.git Ticket #9: let the demo application close gracefully when choosing File->Quit or clicking on the window manager's 'X'. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1198 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/emul/emulwin.cpp b/emul/emulwin.cpp index b5b516a6..b5f57cd4 100644 --- a/emul/emulwin.cpp +++ b/emul/emulwin.cpp @@ -111,6 +111,7 @@ EmulWin::~EmulWin() void EmulWin::closeEvent(QCloseEvent *ce) { + emul->quit(); ce->accept(); }