Before opening linked to main toolbar windows, delete linked windows.

This commit is contained in:
Juanjo
2013-10-19 19:23:15 +00:00
committed by pelya
parent 0de2e2a664
commit 141bb0861e
9 changed files with 10 additions and 4866 deletions

View File

@@ -645,7 +645,7 @@ public:
void ShowBuildIndustryWindow()
{
if (_game_mode != GM_EDITOR && !Company::IsValidID(_local_company)) return;
if (BringWindowToFrontById(WC_BUILD_INDUSTRY, 0)) return;
DeleteToolbarLinkedWindows();
new BuildIndustryWindow();
}