From: msv Date: Wed, 13 Jul 2005 06:26:43 +0000 (+0000) Subject: debug IPAL9411: in destructor, remove this DataObject from the parent before emitting... X-Git-Tag: V3_0_1~59 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48a7d04c7fb0272959420cef00601c8a30e8534f;p=modules%2Fgui.git debug IPAL9411: in destructor, remove this DataObject from the parent before emitting signal. --- diff --git a/src/SUIT/SUIT_DataObject.cxx b/src/SUIT/SUIT_DataObject.cxx index 877d2480e..a19b16e7c 100755 --- a/src/SUIT/SUIT_DataObject.cxx +++ b/src/SUIT/SUIT_DataObject.cxx @@ -27,12 +27,6 @@ SUIT_DataObject::SUIT_DataObject( SUIT_DataObject* p ) SUIT_DataObject::~SUIT_DataObject() { - if ( mySignal ) - { - mySignal->emitSignal(); - mySignal->setOwner( 0 ); - } - SUIT_DataObject* p = myParent; myParent = 0; @@ -40,6 +34,12 @@ SUIT_DataObject::~SUIT_DataObject() if ( p ) p->removeChild( this ); + if ( mySignal ) + { + mySignal->emitSignal(); + mySignal->setOwner( 0 ); + } + for ( QPtrListIterator it( myChildren ); it.current(); ++it ) it.current()->myParent = 0;