[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Fri Oct 1 19:43:38 UTC 2004
CVS commit by okellogg:
removeAssoc: Fix rest of bug 89579 (once again, a deletion before UMLDoc::setModified)
M +4 -3 umlview.cpp 1.182
--- kdesdk/umbrello/umbrello/umlview.cpp #1.181:1.182
@@ -1939,8 +1939,9 @@ void UMLView::removeAssoc(AssociationWid
m_pMoveAssoc = 0;
}
- // Remove the association in this view.
-// pAssoc->cleanup();
- m_AssociationList.remove(pAssoc); // will delete our association
+ // Remove the association in this view - but set the document
+ // modified BEFORE physically deleting it because it is still
+ // needed for an entry in the undo stack (when Undo is enabled.)
m_pDoc->setModified();
+ m_AssociationList.remove(pAssoc); // will delete our association
}
More information about the umbrello-devel
mailing list