aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/function/SetOwnerTrustLevel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/function/SetOwnerTrustLevel.cpp')
-rw-r--r--src/ui/function/SetOwnerTrustLevel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/function/SetOwnerTrustLevel.cpp b/src/ui/function/SetOwnerTrustLevel.cpp
index 014bec48..a15f3525 100644
--- a/src/ui/function/SetOwnerTrustLevel.cpp
+++ b/src/ui/function/SetOwnerTrustLevel.cpp
@@ -37,12 +37,13 @@ namespace GpgFrontend::UI {
SetOwnerTrustLevel::SetOwnerTrustLevel(QWidget* parent) : QWidget(parent) {}
-auto SetOwnerTrustLevel::Exec(const QString& key_id) -> bool {
+auto SetOwnerTrustLevel::Exec(int channel, const QString& key_id) -> bool {
if (key_id.isEmpty()) {
return false;
}
- auto key = GpgKeyGetter::GetInstance().GetKey(key_id);
+ auto key = GpgKeyGetter::GetInstance(channel).GetKey(key_id);
+ assert(key.IsGood());
QStringList items;