aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/function/SetOwnerTrustLevel.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-10-26 13:43:14 +0000
committersaturneric <[email protected]>2024-10-26 13:43:14 +0000
commit24c28eb752aa611dd1670f3fa7ab6b358b052f1b (patch)
tree6a4f9af003fa4a86b7d7e29a965e37a231951092 /src/ui/function/SetOwnerTrustLevel.cpp
parentfix: thread concurrent crash issue (diff)
downloadGpgFrontend-24c28eb752aa611dd1670f3fa7ab6b358b052f1b.tar.gz
GpgFrontend-24c28eb752aa611dd1670f3fa7ab6b358b052f1b.zip
fix: test basic operations of multi key db and solve issues
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;