Browse Source

Close hero overview before recreating advanced options dialog

Ivan Savenko 10 months ago
parent
commit
4b20128144
1 changed files with 3 additions and 0 deletions
  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();