BIM: Remove calls to end_all_events to avoid Linux crash

Fixes #15723.
This commit is contained in:
Roy-043
2024-10-10 11:40:23 +02:00
committed by Yorik van Havre
parent 5eb6fcf6fb
commit f1b8efdcdd
3 changed files with 3 additions and 3 deletions

View File

@@ -412,7 +412,7 @@ class _CommandStructure:
FreeCADGui.doCommand("Draft.autogroup(s)")
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()
gui_utils.end_all_events()
# gui_utils.end_all_events() # Causes a crash on Linux.
self.tracker.finalize()
if self.continueCmd:
self.Activated()

View File

@@ -191,7 +191,7 @@ class Arch_Wall:
FreeCADGui.doCommand('Arch.addComponents(FreeCAD.ActiveDocument.'+FreeCAD.ActiveDocument.Objects[-1].Name+',FreeCAD.ActiveDocument.'+self.existing[0].Name+')')
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()
gui_utils.end_all_events()
# gui_utils.end_all_events() # Causes a crash on Linux.
self.tracker.finalize()
if self.continueCmd:
self.Activated()

View File

@@ -225,7 +225,7 @@ class Arch_Window:
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()
gui_utils.end_all_events()
# gui_utils.end_all_events() # Causes a crash on Linux.
self.tracker.finalize()
return