remove properties from transactions when being deleted

This commit is contained in:
wmayer
2017-08-28 21:20:17 +02:00
parent 5219cb5b38
commit a5bc70cca0
13 changed files with 64 additions and 8 deletions
+6
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