diff options
author | saturneric <[email protected]> | 2024-01-19 13:54:26 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-19 13:54:26 +0000 |
commit | 5baef3c4a3b947d3275e9ce44cfb7a68984f6cca (patch) | |
tree | 78ea7c8caeb4336d99596ae665061bb7f25611f1 /src/ui/widgets/VerifyKeyDetailBox.cpp | |
parent | fix: slove discovered faults and bugs (diff) | |
download | GpgFrontend-5baef3c4a3b947d3275e9ce44cfb7a68984f6cca.tar.gz GpgFrontend-5baef3c4a3b947d3275e9ce44cfb7a68984f6cca.zip |
fix: solve discovered bugs and improve ui operations
Diffstat (limited to 'src/ui/widgets/VerifyKeyDetailBox.cpp')
-rw-r--r-- | src/ui/widgets/VerifyKeyDetailBox.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/widgets/VerifyKeyDetailBox.cpp b/src/ui/widgets/VerifyKeyDetailBox.cpp index c2dd74d3..35b3c100 100644 --- a/src/ui/widgets/VerifyKeyDetailBox.cpp +++ b/src/ui/widgets/VerifyKeyDetailBox.cpp @@ -32,6 +32,7 @@ #include "core/function/GlobalSettingStation.h" #include "core/function/gpg/GpgKeyGetter.h" #include "core/utils/CommonUtils.h" +#include "ui/UserInterfaceUtils.h" namespace GpgFrontend::UI { @@ -163,10 +164,7 @@ VerifyKeyDetailBox::VerifyKeyDetailBox(const GpgSignature& signature, } void VerifyKeyDetailBox::slot_import_form_key_server() { - auto* import_dialog = new KeyServerImportDialog(this); - auto key_ids = std::make_unique<KeyIdArgsList>(); - key_ids->push_back(fpr_); - import_dialog->SlotImport(key_ids); + CommonUtils::GetInstance()->ImportKeyFromKeyServer({fpr_}); } auto VerifyKeyDetailBox::create_key_info_grid(const GpgSignature& signature) |