diff options
author | saturneric <[email protected]> | 2025-04-12 11:36:45 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-12 11:36:45 +0000 |
commit | e0264d85090dd119d48df28477db2fe3b17eb60a (patch) | |
tree | e7711bfe4f03c4b97eb2f37129b07a9ec5eb85d1 /src/ui/dialog/keypair_details/KeyPairUIDTab.cpp | |
parent | fix: wrong ui dialog order after switching apps (diff) | |
download | GpgFrontend-e0264d85090dd119d48df28477db2fe3b17eb60a.tar.gz GpgFrontend-e0264d85090dd119d48df28477db2fe3b17eb60a.zip |
refactor: GpgKey and GpgSubKey
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyPairUIDTab.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyPairUIDTab.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp b/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp index 1d1231c7..a010a6ea 100644 --- a/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp +++ b/src/ui/dialog/keypair_details/KeyPairUIDTab.cpp @@ -176,8 +176,7 @@ void KeyPairUIDTab::slot_refresh_uid_list() { this->buffered_uids_.clear(); - auto uids = m_key_.GetUIDs(); - for (auto& uid : *uids) { + for (auto& uid : m_key_.UIDs()) { this->buffered_uids_.push_back(std::move(uid)); } @@ -317,7 +316,7 @@ void KeyPairUIDTab::slot_add_sign() { void KeyPairUIDTab::slot_add_uid() { auto* key_new_uid_dialog = - new KeyNewUIDDialog(current_gpg_context_channel_, m_key_.GetId(), this); + new KeyNewUIDDialog(current_gpg_context_channel_, m_key_.ID(), this); connect(key_new_uid_dialog, &KeyNewUIDDialog::finished, this, &KeyPairUIDTab::slot_add_uid_result); connect(key_new_uid_dialog, &KeyNewUIDDialog::finished, key_new_uid_dialog, @@ -518,7 +517,7 @@ void KeyPairUIDTab::slot_del_sign() { void KeyPairUIDTab::slot_refresh_key() { // refresh the key GpgKey refreshed_key = GpgKeyGetter::GetInstance(current_gpg_context_channel_) - .GetKey(m_key_.GetId()); + .GetKey(m_key_.ID()); assert(refreshed_key.IsGood()); std::swap(this->m_key_, refreshed_key); @@ -538,7 +537,7 @@ void KeyPairUIDTab::slot_rev_uid() { return; } - const auto uids = m_key_.GetUIDs(); + const auto uids = m_key_.UIDs(); QString message = tr("<h3>Revoke UID Confirmation</h3><br />" "<b>UID:</b> %1<br /><br />" |