fix a TB when password is None instead of a string. fixes #3075

This commit is contained in:
Yann Leboulanger 2007-04-04 19:24:23 +00:00
parent c864393e75
commit 54d9b8736e
1 changed files with 1 additions and 1 deletions

View File

@ -1214,7 +1214,7 @@ class AccountModificationWindow:
self.xml.get_widget('save_password_checkbutton').set_active(
gajim.config.get_per('accounts', self.account, 'savepass'))
if gajim.config.get_per('accounts', self.account, 'savepass'):
passstr = passwords.get_password(self.account)
passstr = passwords.get_password(self.account) or ''
password_entry = self.xml.get_widget('password_entry')
password_entry.set_sensitive(True)
password_entry.set_text(passstr)