summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-30 23:18:27 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-30 23:18:27 +0300
commitd4e5b8fb2b9b72e750845b874f3e60d3aea31543 (patch)
treef0bea217714669845bba553c1d8caaec340f480f
parent9179ef5f16fe760fbe7a0d768380666332ff7982 (diff)
downloadmv-d4e5b8fb2b9b72e750845b874f3e60d3aea31543.tar.gz
mv-d4e5b8fb2b9b72e750845b874f3e60d3aea31543.tar.bz2
mv-d4e5b8fb2b9b72e750845b874f3e60d3aea31543.tar.xz
mv-d4e5b8fb2b9b72e750845b874f3e60d3aea31543.zip
Fix enable/disable login button.
After last changes button was always disabled.
-rw-r--r--src/gui/logindialog.cpp3
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)