From 6b4d839fefd56098eaeb86f071e3e705c0aae092 Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Sat, 24 Nov 2012 17:57:27 +0100 Subject: [PATCH] Menubar: don't die if there's no item selected Signed-off-by: Gregor Best Signed-off-by: Uli Schlachter --- lib/menubar/init.lua.in | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/menubar/init.lua.in b/lib/menubar/init.lua.in index a8d6fc2ed..1588a701a 100644 --- a/lib/menubar/init.lua.in +++ b/lib/menubar/init.lua.in @@ -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 .. ": "