From 3fcf24c40e3d1ee3f5031032fa40211287de3c21 Mon Sep 17 00:00:00 2001 From: stv Date: Mon, 30 May 2005 09:28:34 +0000 Subject: [PATCH] *** empty log message *** --- src/SalomeApp/SalomeApp_Application.cxx | 9 +++++++-- src/SalomeApp/SalomeApp_Application.h | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) 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* ); -- 2.39.2