From c1d897ece3e236f4ed60516419b0934967441e81 Mon Sep 17 00:00:00 2001 From: daid303 Date: Tue, 16 Apr 2013 16:40:13 +0200 Subject: [PATCH] Remove focus from scale tools when window is hidden. --- Cura/gui/util/openglGui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cura/gui/util/openglGui.py b/Cura/gui/util/openglGui.py index a3b9588c..2ef5f35f 100644 --- a/Cura/gui/util/openglGui.py +++ b/Cura/gui/util/openglGui.py @@ -596,6 +596,9 @@ class glFrame(glGuiContainer): def setHidden(self, value): self._hidden = value + for child in self._glGuiControlList: + if self._base._focus == child: + self._base._focus = None def getSelected(self): return self._selected -- 2.30.2