From: ptv Date: Wed, 12 Jul 2006 12:15:19 +0000 (+0000) Subject: CTH12949, clear selection before emit signal that study closed X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a4e324b3017e1bb1912c24c06dbdb020c39c79db;p=modules%2Fgui.git CTH12949, clear selection before emit signal that study closed --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 0ccc31bb4..72be00d5a 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -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();