mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Use cancel button in confirmation only if requested.
This commit is contained in:
parent
5f8acaccc0
commit
aa03d8f184
8 changed files with 41 additions and 18 deletions
|
@ -183,7 +183,7 @@ try_unprotect_cb (struct pin_entry_info_s *pi)
|
|||
if (opt.enforce_passphrase_constraints)
|
||||
{
|
||||
err = agent_get_confirmation (arg->ctrl, desc,
|
||||
_("Change passphrase"), NULL);
|
||||
_("Change passphrase"), NULL, 0);
|
||||
if (!err)
|
||||
arg->change_required = 1;
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ try_unprotect_cb (struct pin_entry_info_s *pi)
|
|||
{
|
||||
err = agent_get_confirmation (arg->ctrl, desc,
|
||||
_("Change passphrase"),
|
||||
_("I'll change it later"));
|
||||
_("I'll change it later"), 0);
|
||||
if (!err)
|
||||
arg->change_required = 1;
|
||||
else if (gpg_err_code (err) == GPG_ERR_CANCELED)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue