Menubar: don't die if there's no item selected
Signed-off-by: Gregor Best <gbe@ring0.de> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
a2cd466103
commit
6b4d839fef
|
@ -106,6 +106,7 @@ end
|
|||
-- @param o The menu item.
|
||||
-- @return if the function processed the callback, new awful.prompt command, new awful.prompt prompt text.
|
||||
local function perform_action(o)
|
||||
if not o then return end
|
||||
if o.key then
|
||||
current_category = o.key
|
||||
local new_prompt = shownitems[current_item].name .. ": "
|
||||
|
|
Loading…
Reference in New Issue