summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-08-06 20:53:45 +0300
committerAndrei Karas <akaras@inbox.ru>2018-08-06 20:53:45 +0300
commit1604ad0c8bd2d770f350cf88e469b4c810b6457f (patch)
tree9a5f2a9ad571024ce2f5b118b3d2cd731a93dc7a
parentb020790c30d06b6d20abd1e7b492588cc1f7ae91 (diff)
downloadmv-1604ad0c8bd2d770f350cf88e469b4c810b6457f.tar.gz
mv-1604ad0c8bd2d770f350cf88e469b4c810b6457f.tar.bz2
mv-1604ad0c8bd2d770f350cf88e469b4c810b6457f.tar.xz
mv-1604ad0c8bd2d770f350cf88e469b4c810b6457f.zip
Dont disable keyboard input in pincode dialogs.
-rw-r--r--src/gui/windows/pincodedialog.cpp8
-rw-r--r--src/gui/windows/pincodedialog.h1
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