From 965fbe65411a3ec63c2dd1c4b08b91c6eb0a0419 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 7 Oct 2005 10:21:33 +0000 Subject: [PATCH] Provide 'Exit' dialog box on 'File'->'Exit' --- src/STD/STD_Application.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.*/ -- 2.39.2