From 1604ad0c8bd2d770f350cf88e469b4c810b6457f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Aug 2018 20:53:45 +0300 Subject: Dont disable keyboard input in pincode dialogs. --- src/gui/windows/pincodedialog.cpp | 8 +------- src/gui/windows/pincodedialog.h | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/gui/windows/pincodedialog.cpp b/src/gui/windows/pincodedialog.cpp index 0e79774ac..425b154ca 100644 --- a/src/gui/windows/pincodedialog.cpp +++ b/src/gui/windows/pincodedialog.cpp @@ -22,8 +22,6 @@ #include "pincodemanager.h" -#include "input/keyboardconfig.h" - #include "gui/widgets/button.h" #include "gui/widgets/label.h" #include "gui/widgets/passwordfield.h" @@ -46,13 +44,10 @@ PincodeDialog::PincodeDialog(const std::string &restrict title, mPasswordField(new PasswordField(this, std::string())), mPincode(new Pincode(this, mPasswordField)), // TRANSLATORS: text dialog button - mOkButton(new Button(this, _("OK"), "OK", BUTTON_SKIN, this)), - mEnabledKeyboard(keyboard.isEnabled()) + mOkButton(new Button(this, _("OK"), "OK", BUTTON_SKIN, this)) { setStickyButtonLock(true); - keyboard.setEnabled(false); - Label *const textLabel = new Label(this, msg); Button *const cancelButton = new Button(this, // TRANSLATORS: text dialog button @@ -124,7 +119,6 @@ const std::string &PincodeDialog::getMsg() const void PincodeDialog::close() { - keyboard.setEnabled(mEnabledKeyboard); pincodeManager.clearDialog(this); scheduleDelete(); } diff --git a/src/gui/windows/pincodedialog.h b/src/gui/windows/pincodedialog.h index f453f67d7..d8067d06e 100644 --- a/src/gui/windows/pincodedialog.h +++ b/src/gui/windows/pincodedialog.h @@ -61,7 +61,6 @@ class PincodeDialog final : public Window, PasswordField *mPasswordField; Pincode *mPincode; Button *mOkButton; - bool mEnabledKeyboard; }; #endif // GUI_WINDOWS_PINCODEDIALOG_H -- cgit v1.2.3-70-g09d2