awful.tag: fix new when layout is nil
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
b853f2df0a
commit
735e612362
|
@ -45,7 +45,7 @@ function new(names, screen, layout)
|
|||
if id == 1 then
|
||||
tags[#tags].selected = true
|
||||
end
|
||||
setproperty(tags[#tags], "layout", layout[#tags] or layout[1] or layout)
|
||||
setproperty(tags[#tags], "layout", layout and (layout[#tags] or layout[1]) or layout)
|
||||
end
|
||||
return tags
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue