From c366ec1baae4d1bc77b4f1f46903cdfc0a9f4dac Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Thu, 10 Oct 2024 11:40:23 +0200 Subject: [PATCH] BIM: Remove calls to end_all_events to avoid Linux crash Fixes #15723. --- src/Mod/BIM/ArchStructure.py | 2 +- src/Mod/BIM/bimcommands/BimWall.py | 2 +- src/Mod/BIM/bimcommands/BimWindow.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/BIM/ArchStructure.py b/src/Mod/BIM/ArchStructure.py index ab074f2d85..6ec7998d58 100644 --- a/src/Mod/BIM/ArchStructure.py +++ b/src/Mod/BIM/ArchStructure.py @@ -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() diff --git a/src/Mod/BIM/bimcommands/BimWall.py b/src/Mod/BIM/bimcommands/BimWall.py index 19263fe146..4c65847aa0 100644 --- a/src/Mod/BIM/bimcommands/BimWall.py +++ b/src/Mod/BIM/bimcommands/BimWall.py @@ -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() diff --git a/src/Mod/BIM/bimcommands/BimWindow.py b/src/Mod/BIM/bimcommands/BimWindow.py index f8427710de..a65114acb4 100644 --- a/src/Mod/BIM/bimcommands/BimWindow.py +++ b/src/Mod/BIM/bimcommands/BimWindow.py @@ -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