diff options
author | saturneric <[email protected]> | 2024-11-26 22:04:00 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-26 22:07:04 +0000 |
commit | af776283bd5d50363c8777dbb3524fde417cc368 (patch) | |
tree | a633e2e8161dc7b9048af25d81e284c116e217cc /src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | |
parent | feat: support eml data decryption (diff) | |
download | GpgFrontend-af776283bd5d50363c8777dbb3524fde417cc368.tar.gz GpgFrontend-af776283bd5d50363c8777dbb3524fde417cc368.zip |
feat: support uid revoke and uid delete operations
Diffstat (limited to '')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp b/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp index d34fb99a..1c99539b 100644 --- a/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp +++ b/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp @@ -36,10 +36,10 @@ namespace GpgFrontend::UI { KeyUIDSignDialog::KeyUIDSignDialog(int channel, const GpgKey& key, - UIDArgsListPtr uid, QWidget* parent) + const QString& uid, QWidget* parent) : GeneralDialog(typeid(KeyUIDSignDialog).name(), parent), current_gpg_context_channel_(channel), - m_uids_(std::move(uid)), + m_uid_(uid), m_key_(key) { assert(m_key_.IsGood()); @@ -114,14 +114,12 @@ void KeyUIDSignDialog::slot_sign_key(bool clicked) { auto expires = std::make_unique<QDateTime>(expires_edit_->dateTime()); - for (const auto& uid : *m_uids_) { - // Sign For mKey - if (!GpgKeyManager::GetInstance(current_gpg_context_channel_) - .SignKey(m_key_, *keys, uid, expires)) { - QMessageBox::critical( - nullptr, tr("Unsuccessful Operation"), - tr("Signature operation failed for UID %1").arg(uid)); - } + // Sign For mKey + if (!GpgKeyManager::GetInstance(current_gpg_context_channel_) + .SignKey(m_key_, *keys, m_uid_, expires)) { + QMessageBox::critical( + nullptr, tr("Unsuccessful Operation"), + tr("Signature operation failed for UID %1").arg(m_uid_)); } QMessageBox::information( |