Draft: Fix Shape2DView finish bug

The Draft_Shape2DView did not finish properly if no object was selected.

Forum topic:
https://forum.freecad.org/viewtopic.php?t=92031
This commit is contained in:
Roy-043
2024-11-11 15:50:48 +01:00
committed by Yorik van Havre
parent 56a897cc96
commit 67bb2a18b1

View File

@@ -71,6 +71,11 @@ class Shape2DView(gui_base_original.Modifier):
else:
self.proceed()
def finish(self, cont=False):
"""Terminate the operation."""
self.end_callbacks(self.call)
super().finish()
def proceed(self):
"""Proceed with the command if one object was selected."""
if self.call is not None: