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:
		| @@ -280,7 +280,7 @@ class GrampsWindowManager: | |||||||
|         return func |         return func | ||||||
|  |  | ||||||
|     def generate_id(self, item): |     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): |     def display_menu_list(self, data, action_data, mlist): | ||||||
|         menuitem = ('<item>\n' |         menuitem = ('<item>\n' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user