Fixed joining stations, broken by confirmation dialog

This commit is contained in:
pelya
2016-05-18 09:37:38 +03:00
committed by Sergii Pylypenko
parent ff28829393
commit a724419cc9
5 changed files with 14 additions and 5 deletions

View File

@@ -27,6 +27,7 @@
#include "hotkeys.h"
#include "gui.h"
#include "zoom_func.h"
#include "build_confirmation_func.h"
#include "widgets/dock_widget.h"
@@ -287,6 +288,7 @@ struct BuildDocksToolbarWindow : Window {
MoveAllHiddenWindowsBackToScreen();
this->RaiseButtons();
if (ConfirmationWindowShown()) return;
DeleteWindowById(WC_BUILD_STATION, TRANSPORT_WATER);
DeleteWindowById(WC_BUILD_DEPOT, TRANSPORT_WATER);
DeleteWindowById(WC_SELECT_STATION, 0);