aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp')
-rw-r--r--src/ui/dialog/keypair_details/KeyUIDSignDialog.cpp3
1 files changed, 2 insertions, 1 deletions
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));