aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-11-26 17:52:27 +0000
committerSaturneric <[email protected]>2022-11-26 17:52:27 +0000
commitefd722000d7ea6648b11b5627b1c833bdf64b0af (patch)
tree4e540b27671783e722519cf5a84ef767386e86e2 /src/ui/dialog/keypair_details/KeyPairUIDTab.cpp
parentfeat: change submodules url (diff)
downloadGpgFrontend-efd722000d7ea6648b11b5627b1c833bdf64b0af.tar.gz
GpgFrontend-efd722000d7ea6648b11b5627b1c833bdf64b0af.zip
feat: support generate ecc key
1. support elliptische kurve nist
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyPairUIDTab.cpp')
-rw-r--r--src/ui/dialog/keypair_details/KeyPairUIDTab.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp b/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp
index b923dbec..caa4e3be 100644
--- a/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp
+++ b/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp
@@ -574,7 +574,12 @@ void KeyPairUIDTab::slot_del_sign() {
}
}
void KeyPairUIDTab::slot_refresh_key() {
- this->m_key_ = GpgKeyGetter::GetInstance().GetKey(this->m_key_.GetId());
+ LOG(INFO) << "called";
+
+ // refresh the key
+ GpgKey refreshed_key = GpgKeyGetter::GetInstance().GetKey(m_key_.GetId());
+ std::swap(this->m_key_, refreshed_key);
+
this->slot_refresh_uid_list();
this->slot_refresh_tofu_info();
this->slot_refresh_sig_list();