handle the case when user press cancell at gnome keyring password dialog when saving a password. Fixes #7305
This commit is contained in:
parent
63557c8c05
commit
1257516306
|
@ -142,7 +142,8 @@ class GnomePasswordStorage(PasswordStorage):
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue