aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/function/SetOwnerTrustLevel.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-10-26 14:20:13 +0000
committersaturneric <[email protected]>2024-10-26 14:20:13 +0000
commitaa90cf1eb97e39f99e622753bb0624ed8dff7775 (patch)
treeec2f334903f4d8e9a179dc88d46911a649c02c7d /src/ui/function/SetOwnerTrustLevel.cpp
parentfix: should check key status immediately after get it (diff)
downloadGpgFrontend-aa90cf1eb97e39f99e622753bb0624ed8dff7775.tar.gz
GpgFrontend-aa90cf1eb97e39f99e622753bb0624ed8dff7775.zip
fix: should select channel before any gpg operation
Diffstat (limited to 'src/ui/function/SetOwnerTrustLevel.cpp')
-rw-r--r--src/ui/function/SetOwnerTrustLevel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/function/SetOwnerTrustLevel.cpp b/src/ui/function/SetOwnerTrustLevel.cpp
index a15f3525..d3ca33b3 100644
--- a/src/ui/function/SetOwnerTrustLevel.cpp
+++ b/src/ui/function/SetOwnerTrustLevel.cpp
@@ -77,8 +77,8 @@ auto SetOwnerTrustLevel::Exec(int channel, const QString& key_id) -> bool {
trust_level = 1;
}
- bool status =
- GpgKeyManager::GetInstance().SetOwnerTrustLevel(key, trust_level);
+ bool status = GpgKeyManager::GetInstance(channel).SetOwnerTrustLevel(
+ key, trust_level);
if (!status) {
QMessageBox::critical(this, tr("Failed"),
tr("Modify Owner Trust Level failed."));