diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-30 23:18:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-30 23:18:27 +0300 |
commit | d4e5b8fb2b9b72e750845b874f3e60d3aea31543 (patch) | |
tree | f0bea217714669845bba553c1d8caaec340f480f /src/gui/logindialog.cpp | |
parent | 9179ef5f16fe760fbe7a0d768380666332ff7982 (diff) | |
download | manaplus-d4e5b8fb2b9b72e750845b874f3e60d3aea31543.tar.gz manaplus-d4e5b8fb2b9b72e750845b874f3e60d3aea31543.tar.bz2 manaplus-d4e5b8fb2b9b72e750845b874f3e60d3aea31543.tar.xz manaplus-d4e5b8fb2b9b72e750845b874f3e60d3aea31543.zip |
Fix enable/disable login button.
After last changes button was always disabled.
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r-- | src/gui/logindialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index 54be72a6e..95b6fc666 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -315,7 +315,10 @@ void LoginDialog::action(const gcn::ActionEvent &event) void LoginDialog::keyPressed(gcn::KeyEvent &keyEvent) { if (keyEvent.isConsumed()) + { + mLoginButton->setEnabled(canSubmit()); return; + } int actionId = static_cast<KeyEvent*>(&keyEvent)->getActionId(); if (actionId == Input::KEY_GUI_CANCEL) |