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:
Gregor Best 2012-11-24 17:57:27 +01:00 committed by Uli Schlachter
parent a2cd466103
commit 6b4d839fef
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ end
-- @param o The menu item. -- @param o The menu item.
-- @return if the function processed the callback, new awful.prompt command, new awful.prompt prompt text. -- @return if the function processed the callback, new awful.prompt command, new awful.prompt prompt text.
local function perform_action(o) local function perform_action(o)
if not o then return end
if o.key then if o.key then
current_category = o.key current_category = o.key
local new_prompt = shownitems[current_item].name .. ": " local new_prompt = shownitems[current_item].name .. ": "