From c1cfcb15774b05285acc91be928b90105f71632b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 18 Mar 2012 15:26:06 +0200 Subject: Do not clear address in main menu if starting a singleplayer game by double clicking the world --- src/guiMainMenu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/guiMainMenu.cpp') diff --git a/src/guiMainMenu.cpp b/src/guiMainMenu.cpp index 4ee153d3f..77a5c161e 100644 --- a/src/guiMainMenu.cpp +++ b/src/guiMainMenu.cpp @@ -866,9 +866,10 @@ bool GUIMainMenu::OnEvent(const SEvent& event) { switch(event.GUIEvent.Caller->getID()) { - case GUI_ID_WORLD_LISTBOX: + case GUI_ID_WORLD_LISTBOX: acceptInput(); - m_data->address = L""; // Force local game + if(getTab() != TAB_SINGLEPLAYER) + m_data->address = L""; // Force local game quitMenu(); return true; } -- cgit v1.2.3