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:
parent
cce5a26a9b
commit
3fccf5a9cb
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user