From e4dffc185225cb1cf2baf17fa94e3a849b046cfa Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 21 Jul 2010 11:13:17 +0000 Subject: [PATCH] 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. --- src/Qtx/QtxWorkstack.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.2