From 5f9ae3ba1ab56fc86f1f362b5ea712b672b0b50f Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 3 Nov 2009 15:10:08 +0100 Subject: [PATCH] Allow keynames to be None. Previously, only the empty string would be "no shortcut". --- src/gui/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/gui.py b/src/gui/gui.py index 20f4d05..cf9536b 100644 --- a/src/gui/gui.py +++ b/src/gui/gui.py @@ -62,7 +62,7 @@ def applicable_functions(obj,allowed_function_names): return [eval('obj.%s'%function_name) for function_name in function_names] def get_key(key_name): - if key_name == '': + if not key_name: key = None else: key=eval('EKey%s'%key_name) -- 2.30.2