aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-22 12:25:24 +0000
committersaturneric <[email protected]>2024-01-22 12:25:24 +0000
commit53a6622d44f002493b8e086d081c0aa4dfd2302b (patch)
treea5864b689a0ffabb3155bc200f0397b0af7cd808
parentfix: update doc and fix some compile errors (diff)
downloadGpgFrontend-53a6622d44f002493b8e086d081c0aa4dfd2302b.tar.gz
GpgFrontend-53a6622d44f002493b8e086d081c0aa4dfd2302b.zip
fix: solve a compile error
-rw-r--r--src/pinentry/pinentrydialog.cpp34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/pinentry/pinentrydialog.cpp b/src/pinentry/pinentrydialog.cpp
index 1b08f1ab..d63b0015 100644
--- a/src/pinentry/pinentrydialog.cpp
+++ b/src/pinentry/pinentrydialog.cpp
@@ -53,7 +53,6 @@
#include "core/utils/MemoryUtils.h"
#include "pinentry.h"
#include "pinlineedit.h"
-#include "util.h"
void raiseWindow(QWidget *w) {
w->setWindowState((w->windowState() & ~Qt::WindowMinimized) |
@@ -532,23 +531,22 @@ void PinEntryDialog::textChanged(const QString &text) {
}
void PinEntryDialog::generatePin() {
- std::unique_ptr<char> pin{pinentry_inq_genpin(_pinentry_info.get())};
- if (pin) {
- if (_edit->echoMode() == QLineEdit::Password) {
- if (mVisiActionEdit != nullptr) {
- mVisiActionEdit->trigger();
- }
- if (mVisiCB != nullptr) {
- mVisiCB->setChecked(true);
- }
- }
- const auto pin_str = QString::fromUtf8(pin.get());
- _edit->setPin(pin_str);
- mRepeat->setPin(pin_str);
- // explicitly focus the first input field and select the generated password
- _edit->setFocus();
- _edit->selectAll();
- }
+ // std::unique_ptr<char> pin{pinentry_inq_genpin(_pinentry_info.get())};
+ // if (pin) {
+ // if (_edit->echoMode() == QLineEdit::Password) {
+ // if (mVisiActionEdit != nullptr) {
+ // mVisiActionEdit->trigger();
+ // }
+ // if (mVisiCB != nullptr) {
+ // mVisiCB->setChecked(true);
+ // }
+ // }
+ // const auto pin_str = QString::fromUtf8(pin.get());
+ // _edit->setPin(pin_str);
+ // mRepeat->setPin(pin_str);
+ // // explicitly focus the first input field and select the generated
+ // password _edit->setFocus(); _edit->selectAll();
+ // }
}
void PinEntryDialog::toggleVisibility() {