From: stv Date: Tue, 7 Jun 2005 04:03:51 +0000 (+0000) Subject: Don't allow to show the empty dock window. X-Git-Tag: T3_0_0_a2~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=190fcdba4a1efb75cbdc51253a0f39f6d82c403a;p=modules%2Fgui.git Don't allow to show the empty dock window. --- diff --git a/src/Qtx/QtxDockWindow.cxx b/src/Qtx/QtxDockWindow.cxx index 1fc289fe7..c88c88a18 100644 --- a/src/Qtx/QtxDockWindow.cxx +++ b/src/Qtx/QtxDockWindow.cxx @@ -72,10 +72,9 @@ bool QtxDockWindow::Watcher::eventFilter( QObject* o, QEvent* e ) if ( o != myCont && e->type() == QEvent::CaptionChange ) updateCaption(); - if ( o != myCont && - ( e->type() == QEvent::Show || e->type() == QEvent::ShowToParent || - e->type() == QEvent::Hide || e->type() == QEvent::HideToParent || - e->type() == QEvent::ChildRemoved ) ) + if ( ( o != myCont && ( e->type() == QEvent::Hide || e->type() == QEvent::HideToParent ) ) || + ( o == myCont && ( e->type() == QEvent::ChildRemoved ) ) || + ( e->type() == QEvent::Show || e->type() == QEvent::ShowToParent ) ) updateVisibility(); return false;