when we choose None in ChooseGPGWindow, we don't print None in config file

This commit is contained in:
Yann Leboulanger 2005-07-06 14:07:20 +00:00
parent 3cb66c10d8
commit f933b29b2e
1 changed files with 3 additions and 2 deletions

View File

@ -557,8 +557,9 @@ class RosterWindow:
keyID = w.run()
if keyID == -1:
return
if keyID[0] == 'None' and user.jid in keys:
del keys[user.jid]
if keyID[0] == 'None'
if user.jid in keys:
del keys[user.jid]
else:
keys[user.jid] = keyID[0]
for u in self.contacts[account][user.jid]: