diff options
| author | saturneric <[email protected]> | 2024-07-31 05:55:59 +0000 | 
|---|---|---|
| committer | saturneric <[email protected]> | 2024-07-31 05:55:59 +0000 | 
| commit | 2be9cf21aef39a34a807eb29b29eec726ec68f97 (patch) | |
| tree | b1c053696132d4754bff72261061cfb84c4365ab /src/m_pinentry/RaisePinentry.cpp | |
| parent | feat: update copyright info (diff) | |
| download | Modules-2be9cf21aef39a34a807eb29b29eec726ec68f97.tar.gz Modules-2be9cf21aef39a34a807eb29b29eec726ec68f97.zip | |
fix: addressing some of the issues identified
Diffstat (limited to '')
| -rw-r--r-- | src/m_pinentry/RaisePinentry.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/m_pinentry/RaisePinentry.cpp b/src/m_pinentry/RaisePinentry.cpp index ed9538d..e4061e6 100644 --- a/src/m_pinentry/RaisePinentry.cpp +++ b/src/m_pinentry/RaisePinentry.cpp @@ -90,12 +90,14 @@ auto RaisePinentry::Exec() -> int {              bool ret = result != 0;              if (!ret) { -              emit SignalUserInputPassphraseCallback({}); +              context_->SetSuccess(false); +              emit SignalUserInputPassphraseCallback(context_);                return -1;              }              auto pin = pinentry->pin().toUtf8(); +            context_->SetSuccess(true);              context_->SetPassphrase(pin);              emit SignalUserInputPassphraseCallback(context_);              return 0; | 
