diff --git a/src/roster_window.py b/src/roster_window.py index 1f90434a0..cd6c97ff4 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -6108,8 +6108,13 @@ class RosterWindow: gc_sub_menu.append(item) for bookmark in gajim.connections[account].bookmarks: + name = bookmark['name'] + if bookmark['name'] == '': + # No name was given for this bookmark. + # Use the first part of JID instead... + name = bookmark['jid'].split("@")[0] # Do not use underline. - item = Gtk.MenuItem.new_with_label(bookmark['name']) + item = Gtk.MenuItem.new_with_label(name) item.set_use_underline(False) item.connect('activate', self.on_bookmark_menuitem_activate, account, bookmark)