From aa90cf1eb97e39f99e622753bb0624ed8dff7775 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sat, 26 Oct 2024 16:20:13 +0200 Subject: fix: should select channel before any gpg operation --- src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 94194652..d34fb99a 100644 --- a/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp +++ b/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp @@ -116,7 +116,8 @@ void KeyUIDSignDialog::slot_sign_key(bool clicked) { for (const auto& uid : *m_uids_) { // Sign For mKey - if (!GpgKeyManager::GetInstance().SignKey(m_key_, *keys, uid, expires)) { + 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)); -- cgit v1.2.3