diff options
author | saturneric <[email protected]> | 2024-10-26 13:51:55 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-10-26 13:51:55 +0000 |
commit | 5bc8c1cd21c18af82a9bf6ffd96457afda46a7bd (patch) | |
tree | cfaa815bd4492ec98a8709be0e4628be6911161b /src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | |
parent | fix: add a resource item (diff) | |
download | GpgFrontend-5bc8c1cd21c18af82a9bf6ffd96457afda46a7bd.tar.gz GpgFrontend-5bc8c1cd21c18af82a9bf6ffd96457afda46a7bd.zip |
fix: should check key status immediately after get it
Diffstat (limited to '')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp b/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp index 7bb0167d..94194652 100644 --- a/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp +++ b/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp @@ -108,12 +108,12 @@ void KeyUIDSignDialog::slot_sign_key(bool clicked) { auto key_ids = m_key_list_->GetChecked(); auto keys = GpgKeyGetter::GetInstance(current_gpg_context_channel_).GetKeys(key_ids); - auto expires = std::make_unique<QDateTime>(expires_edit_->dateTime()); - for (const auto& key : *keys) { assert(key.IsGood()); } + auto expires = std::make_unique<QDateTime>(expires_edit_->dateTime()); + for (const auto& uid : *m_uids_) { // Sign For mKey if (!GpgKeyManager::GetInstance().SignKey(m_key_, *keys, uid, expires)) { |