From 839e18f3e2ebb2f43a7cd00aa6753ee95e3d7e6b Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 9 Aug 2006 13:46:48 +0000 Subject: [PATCH] Porting on Win32 --- src/LightApp/LightApp_Application.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 78ad584b1..4df6f34c1 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -1137,11 +1137,13 @@ void LightApp_Application::removeWindow( const int flag, const int studyId ) sId = activeStudy()->id(); } + bool anIsEmpty = !myWindows[flag]->isEmpty(); QWidget* wid = myWindows[flag]->widget( sId ); myWindows[flag]->remove( sId ); delete wid; - setWindowShown( flag, !myWindows[flag]->isEmpty() ); + //setWindowShown( flag, !myWindows[flag]->isEmpty() ); + setWindowShown( flag, anIsEmpty ); } /*! -- 2.39.2