Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/groupchat_control.py')
-rw-r--r--src/groupchat_control.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/groupchat_control.py b/src/groupchat_control.py
index d5472c350..054dc9c83 100644
--- a/src/groupchat_control.py
+++ b/src/groupchat_control.py
@@ -1891,9 +1891,7 @@ class GroupchatControl(ChatControlBase):
def _on_bookmark_room_menuitem_activate(self, widget):
'''bookmark the room, without autojoin and not minimized'''
- password = ''
- if self.room_jid in gajim.gc_passwords:
- password = gajim.gc_passwords[self.room_jid]
+ password = gajim.gc_passwords.get(self.room_jid, '')
gajim.interface.add_gc_bookmark(self.account, self.name, self.room_jid, \
'0', '0', password, self.nick)