From 8d15eba3a1fdc0162689aaafd9f37895d230b6b1 Mon Sep 17 00:00:00 2001 From: stv Date: Thu, 19 Feb 2009 11:11:11 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/QtxWorkstack.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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(); } -- 2.39.2