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)