From: apl Date: Tue, 24 Jul 2012 11:00:10 +0000 (+0000) Subject: Using child( id ) method in updateCurrent() to avoid searching QtxWorkstackChild... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1afca270437230f9b5ddd2bcff8286d85e9f1ba7;p=modules%2Fgui.git Using child( id ) method in updateCurrent() to avoid searching QtxWorkstackChild* by null widget pointer. Qt debug warnings fixed. --- diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index c193cbeb5..5f0909694 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -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 ); }