Index: kmdimainfrm.cpp
===================================================================
RCS file: /home/kde/kdelibs/kmdi/kmdimainfrm.cpp,v
retrieving revision 1.83
diff -u -r1.83 kmdimainfrm.cpp
--- kmdimainfrm.cpp	30 Dec 2004 05:25:49 -0000	1.83
+++ kmdimainfrm.cpp	5 Jan 2005 21:55:27 -0000
@@ -2383,8 +2383,8 @@
 		
 		KMdiChildFrm* pCurrentChild = m_pMdi->topChild();
 		
-		//If we have no child and there is no menubar, we do nothing
-		if ( !pCurrentChild && !m_pMainMenuBar )
+		//If we have no child or there is no menubar, we do nothing
+		if ( !pCurrentChild || !m_pMainMenuBar )
 			return ;
 
 		QObject::connect( m_pUndock, SIGNAL( clicked() ), pCurrentChild, SLOT( undockPressed() ) );
