aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgKeyManager.cpp
diff options
context:
space:
mode:
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