From 4c51f7d033b42bf1f4faa8a6875a9794fed99547 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sun, 2 Feb 2014 15:42:45 +0000 Subject: [PATCH] 7429: Fix bug when an empty string is used as custom type --- gramps/gui/autocomp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gramps/gui/autocomp.py b/gramps/gui/autocomp.py index ef748e3cc..bcfdc1ed0 100644 --- a/gramps/gui/autocomp.py +++ b/gramps/gui/autocomp.py @@ -276,8 +276,7 @@ class StandardCustomSelector(object): instance. """ if isinstance(event_type, STRTYPE): - if event_type: - return (self.custom_key, event_type) + return (self.custom_key, event_type) elif isinstance(event_type, tuple): if event_type[1]: return (event_type[0], event_type[1])