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/function/SetOwnerTrustLevel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/function/SetOwnerTrustLevel.cpp') 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.")); -- cgit v1.2.3