diff options
author | saturneric <[email protected]> | 2025-04-18 23:23:15 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-18 23:23:15 +0000 |
commit | 0b91f3575db5fd191dd137053bd6bd8b6db03405 (patch) | |
tree | e60875ba1ae67772ad5f95808f2e68665faa4c39 /src/core/function/gpg/GpgUIDOperator.cpp | |
parent | chore: update appstream configures (diff) | |
download | GpgFrontend-0b91f3575db5fd191dd137053bd6bd8b6db03405.tar.gz GpgFrontend-0b91f3575db5fd191dd137053bd6bd8b6db03405.zip |
fix: operations of subkey
Diffstat (limited to 'src/core/function/gpg/GpgUIDOperator.cpp')
-rw-r--r-- | src/core/function/gpg/GpgUIDOperator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/function/gpg/GpgUIDOperator.cpp b/src/core/function/gpg/GpgUIDOperator.cpp index ca056be0..e1b8b8af 100644 --- a/src/core/function/gpg/GpgUIDOperator.cpp +++ b/src/core/function/gpg/GpgUIDOperator.cpp @@ -130,7 +130,7 @@ auto GpgUIDOperator::DeleteUID(const GpgKeyPtr& key, int uid_index) -> bool { }; 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 GpgUIDOperator::RevokeUID(const GpgKeyPtr& key, int uid_index, @@ -245,7 +245,7 @@ auto GpgUIDOperator::RevokeUID(const GpgKeyPtr& key, int uid_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 |