From: ptv Date: Wed, 12 Jul 2006 12:14:10 +0000 (+0000) Subject: CTH12949, clear selection before emit signal that study closed X-Git-Tag: For_CTH_V1_1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3ff19f8397b412ec580b0c0f6b250350af6708cb;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 b8cba4214..74fdc8195 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -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();