From: jfa Date: Fri, 7 Oct 2005 10:21:33 +0000 (+0000) Subject: Provide 'Exit' dialog box on 'File'->'Exit' X-Git-Tag: BR-D5-38-2003_D2005-12-19~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=965fbe65411a3ec63c2dd1c4b08b91c6eb0a0419;p=modules%2Fgui.git Provide 'Exit' dialog box on 'File'->'Exit' --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index b05ee0761..41e78afb0 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -459,7 +459,10 @@ bool STD_Application::onSaveAsDoc() /*!Closing session.*/ void STD_Application::onExit() { - SUIT_Session::session()->closeSession(); + int aAnswer = SUIT_MessageBox::info2(desktop(), tr("INF_DESK_EXIT"), tr("QUE_DESK_EXIT"), + tr ("BUT_OK"), tr ("BUT_CANCEL"), 1, 2, 2); + if (aAnswer == 1) + SUIT_Session::session()->closeSession(); } /*!Virtual slot. Not implemented here.*/