[Uml-devel] [Bug 174397] Going back in Command History after deleting a datatype causes crash

Ralf Habacker ralf.habacker at freenet.de
Thu Dec 1 07:23:22 UTC 2011


--- Comment #9 from Ralf Habacker <ralf habacker freenet de>  2011-12-01 07:23:22 ---
The problem is that the related widget point to by m_widget has been destroyed. 

A breakpoint in UMLWidget destructor shows that the object has been deleted by
a DeferedDelete event probably initiated by a call to deleteLater(). 

deleteLater() is used in 

void UMLView::removeWidget(UMLWidget * o)


void UMLPackage::removeAllObjects().

probably initiated by the following method. 

    // Suppress the UMLObject
    void CmdCreateUMLObject::undo()
        UMLDoc *doc = UMLApp::app()->document();

m_obj is a reference to the real UMLObject, see 

    CmdCreateUMLObject::CmdCreateUMLObject(UMLObject* o)
      : m_obj(o)

so when the the real object is destroyed, the reference points to nomansland. 

No idea yet how to solve this problem.

Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the umbrello-devel mailing list