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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user