From: asl Date: Thu, 23 Mar 2006 11:28:18 +0000 (+0000) Subject: PAL11956 - After activating SUPERV, GEOM, SUPERV again Log Window isn't visible X-Git-Tag: for_sharm~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7665bea85cdf0fee86cefdc5bb058e513f7d348a;p=modules%2Fgui.git PAL11956 - After activating SUPERV, GEOM, SUPERV again Log Window isn't visible --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index f4e934a99..799db0056 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -1068,7 +1068,13 @@ void LightApp_Application::setWindowShown( const int type, const bool on ) QDockWindow* dw = myWindows[type]; desktop()->setAppropriate( dw, on ); - on ? dw->show() : dw->hide(); + if( on ) + dw->show(); + else if( dw->isShown() ) + { + dw->hide(); + myWindowsVisible[ type ] = true; + } } /*!Gets "ObjectBrowser".*/