From: stv Date: Mon, 30 May 2005 09:28:34 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: T3_0_0_a1~81 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3fcf24c40e3d1ee3f5031032fa40211287de3c21;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index f3c344e6a..26cfbedcd 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -696,9 +696,7 @@ void SalomeApp_Application::onStudyClosed( SUIT_Study* ) activateModule( "" ); if ( objectBrowser() != 0 ) - { objectBrowser()->setRootObject( 0 ); - } saveWindowsGeometry(); } @@ -708,6 +706,13 @@ QString SalomeApp_Application::getFileFilter() const return "(*.hdf)"; } +void SalomeApp_Application::afterCloseDoc() +{ + updateWindows(); + + CAM_Application::afterCloseDoc(); +} + void SalomeApp_Application::updateActions() { updateCommandsStatus(); diff --git a/src/SalomeApp/SalomeApp_Application.h b/src/SalomeApp/SalomeApp_Application.h index 6d43f2a75..5709b9a5e 100644 --- a/src/SalomeApp/SalomeApp_Application.h +++ b/src/SalomeApp/SalomeApp_Application.h @@ -111,6 +111,8 @@ protected: virtual void onSelectionChanged(); + virtual void afterCloseDoc(); + private slots: void onNewWindow(); void onModuleActivation( QAction* );