From 5bc8c1cd21c18af82a9bf6ffd96457afda46a7bd Mon Sep 17 00:00:00 2001 From: saturneric Date: Sat, 26 Oct 2024 15:51:55 +0200 Subject: fix: should check key status immediately after get it --- src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp') 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(expires_edit_->dateTime()); - for (const auto& key : *keys) { assert(key.IsGood()); } + auto expires = std::make_unique(expires_edit_->dateTime()); + for (const auto& uid : *m_uids_) { // Sign For mKey if (!GpgKeyManager::GetInstance().SignKey(m_key_, *keys, uid, expires)) { -- cgit v1.2.3