From 3fccf5a9cbc383710ed24a75cfadbec42b33e172 Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Wed, 10 Jul 2019 20:01:47 -0500 Subject: [PATCH] Fix crash when addon/plugin contains an id with space (#836) The updated uimanager and managedwindow uses the plugin id to create actions for plugins that make a window to support the menus. If the plugin id contains a space, Gramps crashes. Fixes #11202 --- gramps/gui/managedwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gui/managedwindow.py b/gramps/gui/managedwindow.py index 8813d542b..98333c498 100644 --- a/gramps/gui/managedwindow.py +++ b/gramps/gui/managedwindow.py @@ -280,7 +280,7 @@ class GrampsWindowManager: return func def generate_id(self, item): - return 'wm/' + str(item.window_id) + return 'wm/' + str(item.window_id).replace(' ', '_') def display_menu_list(self, data, action_data, mlist): menuitem = ('\n'