summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--selector.lua4
1 files 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