From acf1402223b2279aee4693716ff668f7177276b9 Mon Sep 17 00:00:00 2001 From: tritonas00 Date: Sun, 21 Feb 2021 12:16:06 +0200 Subject: [PATCH] show main menu on connect failure --- source/main/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/main/main.cpp b/source/main/main.cpp index c7a253be54..cfc625ebec 100644 --- a/source/main/main.cpp +++ b/source/main/main.cpp @@ -436,6 +436,7 @@ int main(int argc, char *argv[]) App::GetGuiManager()->GetLoadingWindow()->SetVisible(false); App::GetNetwork()->StopConnecting(); App::GetGameContext()->PushMessage(Message(MSG_NET_DISCONNECT_REQUESTED)); + App::GetGameContext()->PushMessage(Message(MSG_GUI_OPEN_MENU_REQUESTED)); App::GetGuiManager()->ShowMessageBox( _LC("Network", "Multiplayer: connection failed"), m.description.c_str()); App::GetGuiManager()->ReflectGameState();