remove properties from transactions when being deleted

This commit is contained in:
wmayer
2017-08-28 21:20:17 +02:00
parent 3a0ea0df8e
commit a5bf15b55d
13 changed files with 64 additions and 8 deletions

View File

@@ -402,6 +402,12 @@ void DocumentObject::setDocument(App::Document* doc)
onSettingDocument();
}
void DocumentObject::onAboutToRemoveProperty(const char* prop)
{
if (_pDoc)
_pDoc->removePropertyOfObject(this, prop);
}
void DocumentObject::onBeforeChange(const Property* prop)
{
// Store current name in oldLabel, to be able to easily retrieve old name of document object later