1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Close hero overview before recreating advanced options dialog

This commit is contained in:
Ivan Savenko
2025-02-01 18:10:22 +00:00
parent 977e15d15c
commit 4b20128144

View File

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