correctly detect when no name is provided for bookmarks

This commit is contained in:
Yann Leboulanger 2014-08-11 22:16:11 +02:00
parent 48eac87cea
commit fae34e8be4
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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]