From: stv Date: Thu, 19 Feb 2009 11:11:11 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_1_1a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d15eba3a1fdc0162689aaafd9f37895d230b6b1;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index 53e91aab4..17b981ca9 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -687,11 +687,11 @@ void QtxWorkstackArea::removeChild( QtxWorkstackChild* child, const bool del ) if ( !myList.contains( child ) ) return; + myStack->removeWidget( child ); + if ( myBar->indexOf( child->id() ) != -1 ) myBar->removeTab( myBar->indexOf( child->id() ) ); - myStack->removeWidget( child ); - myList.removeAll( child ); if ( del ) @@ -1456,10 +1456,6 @@ bool QtxWorkstackChild::eventFilter( QObject* o, QEvent* e ) */ void QtxWorkstackChild::onDestroyed( QObject* obj ) { - if ( obj != widget() ) - return; - - myWidget = 0; deleteLater(); }