From 26df94ef27f057734004b5bb43e8056dfd0ee24a Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 10 Oct 2005 13:56:00 +0000 Subject: [PATCH] Provide 'Exit' dialog box on last application closure by right-upper corner cross --- src/STD/STD_Application.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index 41e78afb0..ec64212c9 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -72,6 +72,11 @@ void STD_Application::start() /*!Event on closing desktop*/ void STD_Application::onDesktopClosing( SUIT_Desktop*, QCloseEvent* e ) { + if (SUIT_Session::session()->applications().count() < 2) { + onExit(); + return; + } + if ( !isPossibleToClose() ) { e->ignore(); -- 2.39.2