From 2ba4bfb45ad101e1414e41db0b14f2b8d0f32ac9 Mon Sep 17 00:00:00 2001 From: Itai Nahshon Date: Fri, 14 Jul 2017 05:13:17 +0300 Subject: [PATCH] When refreshing the pathToolController ui, use UserStrings and not just plain values. Fixes Symptom: If I open the PathToolController, Press "Edit Local Copy..." and then "Ok" the units for the feedrates were gone. --- src/Mod/Path/PathScripts/PathToolController.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathToolController.py b/src/Mod/Path/PathScripts/PathToolController.py index d20c3791a8f2..d5f463493323 100644 --- a/src/Mod/Path/PathScripts/PathToolController.py +++ b/src/Mod/Path/PathScripts/PathToolController.py @@ -314,10 +314,10 @@ def getFields(self): def setFields(self): self.form.tcoName.setText(self.obj.Label) self.form.uiToolNum.setValue(self.obj.ToolNumber) - self.form.vertFeed.setText(str(self.obj.VertFeed.Value)) - self.form.horizFeed.setText(str(self.obj.HorizFeed.Value)) - self.form.vertRapid.setText(str(self.obj.VertRapid.Value)) - self.form.horizRapid.setText(str(self.obj.HorizRapid.Value)) + self.form.vertFeed.setText(self.obj.VertFeed.UserString) + self.form.horizFeed.setText(self.obj.HorizFeed.UserString) + self.form.vertRapid.setText(self.obj.VertRapid.UserString) + self.form.horizRapid.setText(self.obj.HorizRapid.UserString) self.form.spindleSpeed.setValue(self.obj.SpindleSpeed)