diff options
author | saturneric <[email protected]> | 2024-01-17 11:39:47 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-17 11:39:47 +0000 |
commit | e352e8e6b8d03a24ef5d52eef3e4d370807b5bbd (patch) | |
tree | 9a59f0b573a845644afe4b8857a89c4b28bdcc0d /src/core/model/GpgPassphraseContext.cpp | |
parent | fix: solve the gnupg tab options info not shown issue (diff) | |
download | GpgFrontend-e352e8e6b8d03a24ef5d52eef3e4d370807b5bbd.tar.gz GpgFrontend-e352e8e6b8d03a24ef5d52eef3e4d370807b5bbd.zip |
fix: find and slove some bugs
Diffstat (limited to 'src/core/model/GpgPassphraseContext.cpp')
-rw-r--r-- | src/core/model/GpgPassphraseContext.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/model/GpgPassphraseContext.cpp b/src/core/model/GpgPassphraseContext.cpp index 45aab442..5df3f5a8 100644 --- a/src/core/model/GpgPassphraseContext.cpp +++ b/src/core/model/GpgPassphraseContext.cpp @@ -32,10 +32,11 @@ namespace GpgFrontend { GpgPassphraseContext::GpgPassphraseContext(const QString& uids_info, const QString& passphrase_info, - bool prev_was_bad) + bool prev_was_bad, bool ask_for_new) : passphrase_info_(passphrase_info), uids_info_(uids_info), - prev_was_bad_(prev_was_bad) {} + prev_was_bad_(prev_was_bad), + ask_for_new_(ask_for_new) {} GpgPassphraseContext::GpgPassphraseContext() = default; @@ -54,4 +55,6 @@ auto GpgPassphraseContext::GetPassphraseInfo() const -> QString { } auto GpgPassphraseContext::IsPreWasBad() const -> bool { return prev_was_bad_; } + +auto GpgPassphraseContext::IsAskForNew() const -> bool { return ask_for_new_; } } // namespace GpgFrontend |