]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Don't allow to show the empty dock window.
authorstv <stv@opencascade.com>
Tue, 7 Jun 2005 04:03:51 +0000 (04:03 +0000)
committerstv <stv@opencascade.com>
Tue, 7 Jun 2005 04:03:51 +0000 (04:03 +0000)
src/Qtx/QtxDockWindow.cxx

index 1fc289fe7b88c47a3634fb6a594a999e381f38b3..c88c88a1833a479a58df3333c8bcede35a3cd5df 100644 (file)
@@ -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;