]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
no message
authorstv <stv@opencascade.com>
Wed, 14 Dec 2005 13:13:18 +0000 (13:13 +0000)
committerstv <stv@opencascade.com>
Wed, 14 Dec 2005 13:13:18 +0000 (13:13 +0000)
src/Qtx/QtxWorkstack.cxx

index 49880c2f7e6142214549827e81527e69142738f7..854b7f8a0583a33dd21285618d858c0d034b3b89 100644 (file)
@@ -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() );