diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-15 23:36:32 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-15 23:36:32 +0100 |
commit | 5774af3740d44399ac6ad4dfc223e4c9350f98c4 (patch) | |
tree | dfff58bcaa5196a3edb115d96aa94dd8e68d6148 /src/gui | |
parent | 4fa2d32cc9748c1381ceae59c727d090117652c1 (diff) | |
download | mana-client-5774af3740d44399ac6ad4dfc223e4c9350f98c4.tar.gz mana-client-5774af3740d44399ac6ad4dfc223e4c9350f98c4.tar.bz2 mana-client-5774af3740d44399ac6ad4dfc223e4c9350f98c4.tar.xz mana-client-5774af3740d44399ac6ad4dfc223e4c9350f98c4.zip |
Allow pressing enter with focus in port field
Added action event id to port field of login dialog.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/login.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp index c1eda00a..e9964f2e 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -79,6 +79,7 @@ LoginDialog::LoginDialog(LoginData *loginData): mUserField->setActionEventId("ok"); mPassField->setActionEventId("ok"); mServerField->setActionEventId("ok"); + mPortField->setActionEventId("ok"); mServerDropDown->setActionEventId("changeSelection"); mUserField->addKeyListener(this); @@ -289,7 +290,7 @@ std::string LoginDialog::DropDownList::getElementAt(int i) { if (i < 0 || i >= getNumberOfElements()) { - return ""; + return ""; } return getServerAt(i) + ":" + getPortAt(i); } |