aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/guiMainMenu.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/guiMainMenu.cpp b/src/guiMainMenu.cpp
index 4c2030039..1e3083577 100644
--- a/src/guiMainMenu.cpp
+++ b/src/guiMainMenu.cpp
@@ -1207,6 +1207,15 @@ bool GUIMainMenu::OnEvent(const SEvent& event)
switch(event.GUIEvent.Caller->getID())
{
case GUI_ID_ADDRESS_INPUT: case GUI_ID_PORT_INPUT: case GUI_ID_NAME_INPUT: case 264:
+ MainMenuData cur;
+ readInput(&cur);
+ if (getTab() == TAB_MULTIPLAYER && cur.address == L"")
+ {
+ (new GUIMessageMenu(env, parent, -1, menumgr,
+ wgettext("Address required."))
+ )->drop();
+ return true;
+ }
acceptInput();
quitMenu();
return true;