Commit 36eb4d74 authored by Ralf Habacker's avatar Ralf Habacker

Recreate datatype folder on document close after deleting stereotypes.

Unfortunally there are still referenced stereotypes, so no not assert
in UMLStereotype destructor.

CCBUG:345546t
parent 01a11118
......@@ -59,7 +59,7 @@ UMLStereotype::UMLStereotype()
*/
UMLStereotype::~UMLStereotype()
{
Q_ASSERT(m_refCount == 0);
//Q_ASSERT(m_refCount == 0);
}
/**
......
......@@ -405,11 +405,6 @@ void UMLDoc::closeDocument()
// @fixme With advanced code generation enabled, this crashes.
removeAllObjects();
// Restore the datatype folder, it has been deleted above.
createDatatypeFolder();
// this creates to much items only Logical View should be created
listView->init();
// Remove any stereotypes.
if (stereotypes().count() > 0) {
foreach(UMLStereotype *s, stereotypes()) {
......@@ -418,6 +413,11 @@ void UMLDoc::closeDocument()
}
m_stereoList.clear();
}
// Restore the datatype folder, it has been deleted above.
createDatatypeFolder();
// this creates to much items only Logical View should be created
listView->init();
}
m_bClosing = false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment