correctly detect when no name is provided for bookmarks
This commit is contained in:
parent
48eac87cea
commit
fae34e8be4
|
@ -3185,7 +3185,7 @@ class ManageBookmarksWindow:
|
|||
None, None, None, None])
|
||||
|
||||
for bookmark in gajim.connections[account].bookmarks:
|
||||
if bookmark['name'] == '':
|
||||
if not bookmark['name']:
|
||||
# No name was given for this bookmark.
|
||||
# Use the first part of JID instead...
|
||||
name = bookmark['jid'].split("@")[0]
|
||||
|
|
|
@ -6109,7 +6109,7 @@ class RosterWindow:
|
|||
|
||||
for bookmark in gajim.connections[account].bookmarks:
|
||||
name = bookmark['name']
|
||||
if bookmark['name'] == '':
|
||||
if not name:
|
||||
# No name was given for this bookmark.
|
||||
# Use the first part of JID instead...
|
||||
name = bookmark['jid'].split("@")[0]
|
||||
|
|
Loading…
Reference in New Issue