Explorar o código

Close hero overview before recreating advanced options dialog

Ivan Savenko hai 10 meses
pai
achega
4b20128144
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      client/lobby/OptionsTab.cpp

+ 3 - 0
client/lobby/OptionsTab.cpp

@@ -68,6 +68,9 @@ void OptionsTab::recreate()
 	entries.clear();
 	humanPlayers = 0;
 
+	for (auto heroOverview : GH.windows().findWindows<CHeroOverview>())
+		heroOverview->close();
+
 	for (auto selectionWindow : GH.windows().findWindows<SelectionWindow>())
 	{
 		selectionWindow->reopen();