From 03e0b892b35a264d35f79f6cdba0bc7fa4dbdd32 Mon Sep 17 00:00:00 2001 From: stv Date: Wed, 14 Dec 2005 13:13:18 +0000 Subject: [PATCH] no message --- src/Qtx/QtxWorkstack.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index 49880c2f7..854b7f8a0 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -1384,8 +1384,13 @@ void QtxWorkstackArea::customEvent( QCustomEvent* e ) emit activated( activeWidget() ); break; case FocusWidget: - if ( activeWidget() && !activeWidget()->focusWidget() ) - activeWidget()->setFocus(); + if ( activeWidget() ) + { + if ( !activeWidget()->focusWidget() ) + activeWidget()->setFocus(); + else + activeWidget()->focusWidget()->setFocus(); + } break; case RemoveWidget: removeWidget( (QWidget*)e->data() ); -- 2.39.2