chiark / gitweb /
Do not crash on malformed ini files.
[cura.git] / Cura / gui / util / openglGui.py
index 710f56f90d6b381351df40c2a4efd88ddd764342..d718b47239ebe0589d7f13790552d6ce49c66b36 100644 (file)
@@ -323,7 +323,7 @@ class glButton(glGuiControl):
                glPopMatrix()
 
        def _checkHit(self, x, y):
-               if self._hidden:
+               if self._hidden or self._disabled:
                        return False
                bs = self.getMinSize()[0]
                pos = self._getPixelPos()