aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacobF <queatz@gmail.com>2011-08-23 22:06:35 -0400
committerJacobF <queatz@gmail.com>2011-08-23 22:06:35 -0400
commit00bdfad5f6cdfff1b5e6297d2b9e8258fd5ed847 (patch)
tree3a2bae334472829db5a714c33d083b01a5ee929b /src
parentefd8dabd913b2d1a0564378c30ae86c7a5081f06 (diff)
downloadminetest-00bdfad5f6cdfff1b5e6297d2b9e8258fd5ed847.tar.gz
minetest-00bdfad5f6cdfff1b5e6297d2b9e8258fd5ed847.tar.bz2
minetest-00bdfad5f6cdfff1b5e6297d2b9e8258fd5ed847.zip
The password box in the mainmenu is focused if there is already a name and address filled in
Diffstat (limited to 'src')
-rw-r--r--src/guiMainMenu.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/guiMainMenu.cpp b/src/guiMainMenu.cpp
index 2d5bd151a..fde71e4bc 100644
--- a/src/guiMainMenu.cpp
+++ b/src/guiMainMenu.cpp
@@ -196,6 +196,8 @@ void GUIMainMenu::regenerateGui(v2u32 screensize)
gui::IGUIEditBox *e =
Environment->addEditBox(L"", rect, true, this, 264);
e->setPasswordBox(true);
+ if(text_name != L"" && text_address != L"")
+ Environment->setFocus(e);
}
changeCtype("");
@@ -212,7 +214,7 @@ void GUIMainMenu::regenerateGui(v2u32 screensize)
rect += topleft_client + v2s32(160, 100);
gui::IGUIElement *e =
Environment->addEditBox(text_address.c_str(), rect, true, this, GUI_ID_ADDRESS_INPUT);
- if(text_name != L"")
+ if(text_name != L"" && text_address == L"")
Environment->setFocus(e);
}
{