瀏覽代碼

Close hero overview before recreating advanced options dialog

Ivan Savenko 10 月之前
父節點
當前提交
4b20128144
共有 1 個文件被更改,包括 3 次插入0 次删除
  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();