diff options
author | saturneric <[email protected]> | 2024-10-26 14:20:13 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-10-26 14:20:13 +0000 |
commit | aa90cf1eb97e39f99e622753bb0624ed8dff7775 (patch) | |
tree | ec2f334903f4d8e9a179dc88d46911a649c02c7d /src/ui/dialog/keypair_details/KeySetExpireDateDialog.cpp | |
parent | fix: should check key status immediately after get it (diff) | |
download | GpgFrontend-aa90cf1eb97e39f99e622753bb0624ed8dff7775.tar.gz GpgFrontend-aa90cf1eb97e39f99e622753bb0624ed8dff7775.zip |
fix: should select channel before any gpg operation
Diffstat (limited to 'src/ui/dialog/keypair_details/KeySetExpireDateDialog.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeySetExpireDateDialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/dialog/keypair_details/KeySetExpireDateDialog.cpp b/src/ui/dialog/keypair_details/KeySetExpireDateDialog.cpp index 71963f99..d621e261 100644 --- a/src/ui/dialog/keypair_details/KeySetExpireDateDialog.cpp +++ b/src/ui/dialog/keypair_details/KeySetExpireDateDialog.cpp @@ -70,7 +70,8 @@ void KeySetExpireDateDialog::slot_confirm() { expires = std::make_unique<QDateTime>(datetime.toLocalTime()); } - auto err = GpgKeyOpera::GetInstance().SetExpire(m_key_, m_subkey_, expires); + auto err = GpgKeyOpera::GetInstance(current_gpg_context_channel_) + .SetExpire(m_key_, m_subkey_, expires); if (CheckGpgError(err) == GPG_ERR_NO_ERROR) { auto* msg_box = new QMessageBox(qobject_cast<QWidget*>(this->parent())); |