From: nds Date: Wed, 21 Jul 2010 11:13:17 +0000 (+0000) Subject: This is merge from V5_1_4_BR(2010-04-21) in order to avoid ATLAS exception, which... X-Git-Tag: TG_For_Atlas_v1_3_2d X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e4dffc185225cb1cf2baf17fa94e3a849b046cfa;p=modules%2Fgui.git This is merge from V5_1_4_BR(2010-04-21) in order to avoid ATLAS exception, which happened by the "Close All Plans" action with active a middle window. --- diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index a12ef20d1..171733a34 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -514,11 +514,11 @@ void QtxWorkstackArea::removeWidget( QWidget* wid, const bool del ) if ( !myList.contains( wid ) ) return; + myStack->removeWidget( child( wid ) ); + if ( myBar->indexOf( widgetId( wid ) ) != -1 ) myBar->removeTab( myBar->indexOf( widgetId( wid ) ) ); - myStack->removeWidget( child( wid ) ); - myList.removeAll( wid ); myInfo.remove( wid ); myChild.remove( wid );