]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Provide 'Exit' dialog box on last application closure by right-upper corner cross
authorjfa <jfa@opencascade.com>
Mon, 10 Oct 2005 13:56:00 +0000 (13:56 +0000)
committerjfa <jfa@opencascade.com>
Mon, 10 Oct 2005 13:56:00 +0000 (13:56 +0000)
src/STD/STD_Application.cxx

index 41e78afb0013bc8d2dd0ccd8c0d1fefa6406aa02..ec64212c98c49c3d437aafe21fcbcaefb4c365b7 100755 (executable)
@@ -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();