Draft: fix wrong selection after commands (improved)

The previous fix was not correct. Some commands would cause a crash and several files were missed.

Forum topic reporting a crash:
https://forum.freecad.org/viewtopic.php?t=85243
This commit is contained in:
Roy-043
2024-02-16 10:56:10 +01:00
parent 01ad6adacc
commit 0beda2c1bd
32 changed files with 138 additions and 119 deletions

View File

@@ -74,13 +74,11 @@ class Rectangle(gui_base_original.Creator):
Restart (continue) the command if `True`, or if `None` and
`ui.continueMode` is `True`.
"""
if self.ui and hasattr(self, "fillstate"):
self.ui.hasFill.setChecked(self.fillstate)
del self.fillstate
super().finish()
self.end_callbacks(self.call)
if self.ui:
self.rect.off()
self.rect.finalize()
super().finish()
if cont or (cont is None and self.ui and self.ui.continueMode):
self.Activated()