From 1afca270437230f9b5ddd2bcff8286d85e9f1ba7 Mon Sep 17 00:00:00 2001 From: apl Date: Tue, 24 Jul 2012 11:00:10 +0000 Subject: [PATCH] Using child( id ) method in updateCurrent() to avoid searching QtxWorkstackChild* by null widget pointer. Qt debug warnings fixed. --- src/Qtx/QtxWorkstack.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.39.2