diff options
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/pincodedialog.cpp | 8 | ||||
-rw-r--r-- | src/gui/windows/pincodedialog.h | 1 |
2 files changed, 1 insertions, 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 |