From c8109c9401643ea0d51d4af232d48b8b78966e2d Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Wed, 26 May 2021 23:03:43 -0500 Subject: [PATCH] Path: Fix readonly lockout bug with blank expression --- src/Mod/Path/PathScripts/PathGui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathGui.py b/src/Mod/Path/PathScripts/PathGui.py index ee5e56d22c..1d0d58f358 100644 --- a/src/Mod/Path/PathScripts/PathGui.py +++ b/src/Mod/Path/PathScripts/PathGui.py @@ -68,10 +68,10 @@ def updateInputField(obj, prop, widget, onBeforeChange=None): isDiff = True break if noExpr: - widget.setProperty('readonly', False) + widget.setReadOnly(False) widget.setStyleSheet("color: black") else: - widget.setProperty('readonly', True) + widget.setReadOnly(True) widget.setStyleSheet("color: gray") widget.update()