Skip to content

Commit

Permalink
Fem: [skip ci] fix deleting Result object if its children has been de…
Browse files Browse the repository at this point in the history
…leted beforehand
  • Loading branch information
wwmayer committed May 28, 2022
1 parent b07be87 commit a80d9e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Fem/femviewprovider/view_result_mechanical.py
Expand Up @@ -63,6 +63,8 @@ def claimChildren(self):

def onDelete(self, feature, subelements):
children = self.claimChildren()
filtered = filter(lambda obj: not obj is None, children)
children = list(filtered)
if len(children) > 0:
# issue a warning
bodyMessage = "The results object is not empty, therefore the\nfollowing referencing objects might be lost:\n"
Expand Down

0 comments on commit a80d9e5

Please sign in to comment.