diff --git a/OpenRA.Mods.Cnc/Widgets/CncServerBrowserLogic.cs b/OpenRA.Mods.Cnc/Widgets/CncServerBrowserLogic.cs index a7014ce334..a114c10a11 100644 --- a/OpenRA.Mods.Cnc/Widgets/CncServerBrowserLogic.cs +++ b/OpenRA.Mods.Cnc/Widgets/CncServerBrowserLogic.cs @@ -117,7 +117,7 @@ namespace OpenRA.Mods.Cnc.Widgets CncConnectingLogic.Connect(host, port, openLobby, onExit); }; - panel.GetWidget("BACK_BUTTON").OnClick = onExit; + panel.GetWidget("BACK_BUTTON").OnClick = () => { Widget.CloseWindow(); onExit(); }; // Server list serverTemplate = sl.GetWidget("SERVER_TEMPLATE");