]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
CTH12949, clear selection before emit signal that study closed
authorptv <ptv@opencascade.com>
Wed, 12 Jul 2006 12:15:19 +0000 (12:15 +0000)
committerptv <ptv@opencascade.com>
Wed, 12 Jul 2006 12:15:19 +0000 (12:15 +0000)
src/LightApp/LightApp_Application.cxx

index 0ccc31bb46ba2b75ba10bd87e6c4a26b8fa62b91..72be00d5aee344e600f600a8aa6eb19141e5c1e7 100644 (file)
@@ -1435,11 +1435,12 @@ void LightApp_Application::onStudySaved( SUIT_Study* )
 /*!Protected SLOT. On study closed.*/
 void LightApp_Application::onStudyClosed( SUIT_Study* )
 {
-  emit studyClosed();
-
   // Bug 10396: clear selection
   mySelMgr->clearSelected();
 
+  // Bug 12944: emit signal only after clear selection
+  emit studyClosed();
+
   activateModule( "" );
 
   saveWindowsGeometry();