From c17a89973f856d77694c5b80d96d1d3b63a9171d Mon Sep 17 00:00:00 2001 From: carlopav <47068848+carlopav@users.noreply.github.com> Date: Sat, 4 May 2019 16:29:31 +0200 Subject: [PATCH] Draft GUI setfocus if lengthValue is not visible If set focus on length instead of x coordinate is checked, Draft set the focus on it also if the lengthValue is not visible --- src/Mod/Draft/DraftGui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/DraftGui.py b/src/Mod/Draft/DraftGui.py index c799430a5625..6e97e0711bd0 100644 --- a/src/Mod/Draft/DraftGui.py +++ b/src/Mod/Draft/DraftGui.py @@ -908,7 +908,7 @@ def redraw(self): def setFocus(self): p = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft") - if p.GetBool("focusOnLength",False): + if p.GetBool("focusOnLength",False) and self.lengthValue.isVisible(): self.lengthValue.setFocus() self.lengthValue.selectAll() else: