]> 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:14:10 +0000 (12:14 +0000)
committerptv <ptv@opencascade.com>
Wed, 12 Jul 2006 12:14:10 +0000 (12:14 +0000)
src/LightApp/LightApp_Application.cxx

index b8cba421474b089a42fc83d9fd42a67b28c60605..74fdc81952dc5b6fb3d4c40a9782e1b459b8af36 100644 (file)
@@ -1184,11 +1184,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();