From 190fcdba4a1efb75cbdc51253a0f39f6d82c403a Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 7 Jun 2005 04:03:51 +0000 Subject: [PATCH] Don't allow to show the empty dock window. --- src/Qtx/QtxDockWindow.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.39.2