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'