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 2019-07-10 20:01:47 -05:00 committed by Sam Manzi
parent cce5a26a9b
commit 3fccf5a9cb

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'