]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
debug IPAL9411: in destructor, remove this DataObject from the parent before emitting...
authormsv <msv@opencascade.com>
Wed, 13 Jul 2005 06:26:43 +0000 (06:26 +0000)
committermsv <msv@opencascade.com>
Wed, 13 Jul 2005 06:26:43 +0000 (06:26 +0000)
src/SUIT/SUIT_DataObject.cxx

index 877d2480e906b1fdf6a7a0c4006a5e6490f6bf18..a19b16e7ca158af429ff37c257a39088319a5bcc 100755 (executable)
@@ -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<SUIT_DataObject> it( myChildren ); it.current(); ++it )
     it.current()->myParent = 0;