diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-08-06 20:53:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-08-06 20:53:45 +0300 |
commit | 1604ad0c8bd2d770f350cf88e469b4c810b6457f (patch) | |
tree | 9a5f2a9ad571024ce2f5b118b3d2cd731a93dc7a /src/gui/windows/pincodedialog.cpp | |
parent | b020790c30d06b6d20abd1e7b492588cc1f7ae91 (diff) | |
download | manaverse-1604ad0c8bd2d770f350cf88e469b4c810b6457f.tar.gz manaverse-1604ad0c8bd2d770f350cf88e469b4c810b6457f.tar.bz2 manaverse-1604ad0c8bd2d770f350cf88e469b4c810b6457f.tar.xz manaverse-1604ad0c8bd2d770f350cf88e469b4c810b6457f.zip |
Dont disable keyboard input in pincode dialogs.
Diffstat (limited to 'src/gui/windows/pincodedialog.cpp')
-rw-r--r-- | src/gui/windows/pincodedialog.cpp | 8 |
1 files changed, 1 insertions, 7 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(); } |