summaryrefslogtreecommitdiff
path: root/src/gui/windows/pincodedialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/pincodedialog.cpp')
-rw-r--r--src/gui/windows/pincodedialog.cpp8
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();
}