rename status bit 'Delete' to 'Remove' as it fits better for its purpose, add new bit 'Destroy'

This commit is contained in:
wmayer
2017-09-13 15:47:48 +02:00
parent 82537ca863
commit 4b400fd986
6 changed files with 14 additions and 13 deletions

View File

@@ -174,8 +174,8 @@ void Origin::unsetupObject () {
// Check that previous deletes wasn't inderectly removed one of our objects
const auto &objsLnk = OriginFeatures.getValues ();
if ( std::find(objsLnk.begin(), objsLnk.end(), obj) != objsLnk.end()) {
if ( ! obj->isDeleting () ) {
obj->getDocument ()->remObject (obj->getNameInDocument());
if ( ! obj->isRemoving() ) {
obj->getDocument()->remObject (obj->getNameInDocument());
}
}
}