浏览代码

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();