From 1b46cb4fb84f8f21b8766f2a1af5d8a5e9cc15d6 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 15 Aug 2016 00:54:02 +0200 Subject: Fixed cancel --- selector.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selector.lua b/selector.lua index f869377..afdfed7 100644 --- a/selector.lua +++ b/selector.lua @@ -46,7 +46,7 @@ end function Selector:clear() self.controlset = nil self.naut = 1 - self.locked = 0 + self.locked = false end function Selector:getSelectionName() return self.parent.nauts[self.naut] @@ -103,7 +103,7 @@ function Selector:controlpressed(set, action, key) if self.locked == true then self.locked = false else - self.parent:unselectSelector(self) + self:clear() end end end -- cgit v1.1