Allow calling List:setChoices() to clear choices

develop
Pauli 2018-06-20 17:46:24 +03:00
parent 40469c6bef
commit 98b25e3462
1 changed files with 1 additions and 1 deletions

@ -458,7 +458,7 @@ end
function List:setChoices(choices, selected)
self.choices = {}
for i,v in ipairs(choices) do
for i,v in ipairs(choices or {}) do
local l = utils.clone(v);
if type(v) ~= 'table' then
l = { text = v }