diff --git a/src/Mod/Path/PathPythonGui/simple_edit_panel.py b/src/Mod/Path/PathPythonGui/simple_edit_panel.py index 0de9345bf3..b9a726851f 100644 --- a/src/Mod/Path/PathPythonGui/simple_edit_panel.py +++ b/src/Mod/Path/PathPythonGui/simple_edit_panel.py @@ -77,7 +77,7 @@ class SimpleEditPanel: elif prop_type in PROP_TYPE_NUMERIC and widget_type == "QDoubleSpinBox": self._fc[prop_name] = widget.value, widget.setValue elif prop_type in PROP_TYPE_QTYES and widget_type == "QLineEdit": - self._fc[prop_name] = widget.text, lambda v: widget.setText(str(v)) + self._fc[prop_name] = widget.text, lambda v: widget.setText(v.UserString) else: raise ValueError( f"Unsupported connection between '{prop_type}' property and '{widget_type}' widget"