diff options
author | saturneric <[email protected]> | 2023-12-02 14:01:16 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-02 14:01:16 +0000 |
commit | 0ec3358e4cfce7ad242e851c450292a25619221e (patch) | |
tree | 28a50308678ccbe0e0820d367f363df7df4e0be2 /src/ui/dialog/keypair_details/KeyPairOperaTab.cpp | |
parent | fix: add set owner struct action in keymanager menu (diff) | |
download | GpgFrontend-0ec3358e4cfce7ad242e851c450292a25619221e.tar.gz GpgFrontend-0ec3358e4cfce7ad242e851c450292a25619221e.zip |
feat: add buddled qt pinentry and make it works
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyPairOperaTab.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyPairOperaTab.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp b/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp index e5b5ab18..6f1bde9c 100644 --- a/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp +++ b/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp @@ -32,6 +32,7 @@ #include "core/function/GlobalSettingStation.h" #include "core/function/gpg/GpgKeyImportExporter.h" #include "core/function/gpg/GpgKeyOpera.h" +#include "core/typedef/GpgTypedef.h" #include "core/utils/GpgUtils.h" #include "core/utils/IOUtils.h" #include "ui/UISignalStation.h" @@ -343,11 +344,12 @@ void KeyPairOperaTab::slot_gen_revoke_cert() { } void KeyPairOperaTab::slot_modify_password() { - auto err = GpgKeyOpera::GetInstance().ModifyPassword(m_key_); - if (CheckGpgError(err) != GPG_ERR_NO_ERROR) { - QMessageBox::critical(this, _("Not Successful"), - QString(_("Modify password not successfully."))); - } + GpgKeyOpera::GetInstance().ModifyPassword(m_key_, [this](GpgError err) { + if (CheckGpgError(err) != GPG_ERR_NO_ERROR) { + QMessageBox::critical(this, _("Not Successful"), + QString(_("Modify password not successfully."))); + } + }); } void KeyPairOperaTab::slot_modify_tofu_policy() { |