changeset 76a5f583cfad in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=76a5f583cfad description: handle the case when user press cancell at gnome keyring password dialog when saving a password. Fixes #7305
diffstat:
src/common/passwords.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r a82c19001268 -r 76a5f583cfad src/common/passwords.py --- a/src/common/passwords.py Sat Feb 16 23:49:39 2013 +0100 +++ b/src/common/passwords.py Tue Feb 19 13:22:49 2013 +0100 @@ -142,7 +142,8 @@ GnomeKeyring.ItemType.NETWORK_PASSWORD, display_name, attributes1, password, update) if err != GnomeKeyring.Result.OK: - if err == GnomeKeyring.Result.DENIED: + if err in (GnomeKeyring.Result.DENIED, + GnomeKeyring.Result.CANCELLED): set_storage(SimplePasswordStorage()) storage.save_password(account_name, password) return