aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgKeyManager.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-18 23:23:15 +0000
committersaturneric <[email protected]>2025-04-18 23:23:15 +0000
commit0b91f3575db5fd191dd137053bd6bd8b6db03405 (patch)
treee60875ba1ae67772ad5f95808f2e68665faa4c39 /src/core/function/gpg/GpgKeyManager.cpp
parentchore: update appstream configures (diff)
downloadGpgFrontend-0b91f3575db5fd191dd137053bd6bd8b6db03405.tar.gz
GpgFrontend-0b91f3575db5fd191dd137053bd6bd8b6db03405.zip
fix: operations of subkey
Diffstat (limited to 'src/core/function/gpg/GpgKeyManager.cpp')
-rw-r--r--src/core/function/gpg/GpgKeyManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/function/gpg/GpgKeyManager.cpp b/src/core/function/gpg/GpgKeyManager.cpp
index 5fca4ed4..b2337659 100644
--- a/src/core/function/gpg/GpgKeyManager.cpp
+++ b/src/core/function/gpg/GpgKeyManager.cpp
@@ -168,7 +168,7 @@ auto GpgKeyManager::SetOwnerTrustLevel(const GpgKeyPtr& key,
};
auto [err, succ] = auto_.DoInteract(key, next_state_handler, action_handler);
- return err == GPG_ERR_NO_ERROR && !succ;
+ return err == GPG_ERR_NO_ERROR && succ;
}
auto GpgKeyManager::DeleteSubkey(const GpgKeyPtr& key,
@@ -246,7 +246,7 @@ auto GpgKeyManager::DeleteSubkey(const GpgKeyPtr& key,
};
auto [err, succ] = auto_.DoInteract(key, next_state_handler, action_handler);
- return err == GPG_ERR_NO_ERROR && !succ;
+ return err == GPG_ERR_NO_ERROR && succ;
}
auto GpgKeyManager::RevokeSubkey(const GpgKeyPtr& key, int subkey_index,
@@ -362,7 +362,7 @@ auto GpgKeyManager::RevokeSubkey(const GpgKeyPtr& key, int subkey_index,
};
auto [err, succ] = auto_.DoInteract(key, next_state_handler, action_handler);
- return err == GPG_ERR_NO_ERROR && !succ;
+ return err == GPG_ERR_NO_ERROR && succ;
}
} // namespace GpgFrontend \ No newline at end of file