From 673f6664bd2ec93b4d62684f98184c2b40e82cde Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Tue, 9 Sep 2025 23:30:46 +0200 Subject: [PATCH] BIM: Change SectionPlane task panel button from OK to Close --- src/Mod/BIM/ArchSectionPlane.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Mod/BIM/ArchSectionPlane.py b/src/Mod/BIM/ArchSectionPlane.py index 81450c389d..9f218677ef 100644 --- a/src/Mod/BIM/ArchSectionPlane.py +++ b/src/Mod/BIM/ArchSectionPlane.py @@ -1256,7 +1256,7 @@ class SectionPlaneTaskPanel: return True def getStandardButtons(self): - return QtGui.QDialogButtonBox.Ok + return QtGui.QDialogButtonBox.Close def getIcon(self,obj): if hasattr(obj.ViewObject,"Proxy"): @@ -1358,6 +1358,11 @@ class SectionPlaneTaskPanel: FreeCADGui.ActiveDocument.resetEdit() return True + def reject(self): + FreeCAD.ActiveDocument.recompute() + FreeCADGui.ActiveDocument.resetEdit() + return True + def toggleCutView(self, state): if self.obj and self.obj.ViewObject and hasattr(self.obj.ViewObject, "CutView"): self.obj.ViewObject.CutView = (state == QtCore.Qt.Checked)