X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FQtx%2FQtxDockWindow.cxx;h=c88c88a1833a479a58df3333c8bcede35a3cd5df;hb=624ced11294dbd9f0704a95ccb3c6135f58931d3;hp=1fc289fe7b88c47a3634fb6a594a999e381f38b3;hpb=612de25259df7dd0729221a90472cbe4061ac1cc;p=modules%2Fgui.git 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;