aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/VerifyKeyDetailBox.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-19 13:54:26 +0000
committersaturneric <[email protected]>2024-01-19 13:54:26 +0000
commit5baef3c4a3b947d3275e9ce44cfb7a68984f6cca (patch)
tree78ea7c8caeb4336d99596ae665061bb7f25611f1 /src/ui/widgets/VerifyKeyDetailBox.cpp
parentfix: slove discovered faults and bugs (diff)
downloadGpgFrontend-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.cpp6
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)