]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Using child( id ) method in updateCurrent() to avoid searching QtxWorkstackChild...
authorapl <apl@opencascade.com>
Tue, 24 Jul 2012 11:00:10 +0000 (11:00 +0000)
committerapl <apl@opencascade.com>
Tue, 24 Jul 2012 11:00:10 +0000 (11:00 +0000)
src/Qtx/QtxWorkstack.cxx

index c193cbeb53a53ae77a8694f70f0437249dba0fd7..5f0909694815a0f7541b44a80f361f712834fac2 100644 (file)
@@ -1104,7 +1104,7 @@ void QtxWorkstackArea::onChildCaptionChanged( QtxWorkstackChild* c )
 */
 void QtxWorkstackArea::updateCurrent()
 {
-  QWidget* cur = child( widget( myBar->tabId( myBar->currentIndex() ) ) );
+  QWidget* cur = child( myBar->tabId( myBar->currentIndex() ) );
   if ( cur )
     myStack->setCurrentWidget( cur );
 }