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
This commit is contained in:
Paul Culley authored and Sam Manzi committed 2019-07-11 11:01:47 +10:00
1 parent cce5a26a9b
commit 3fccf5a9cb
1 file changed
+1 -1
+1 -1
View File
@@ -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 = ('<item>\n'