Better fix for hiding error message window after clicking 'Cancel'

This commit is contained in:
pelya
2017-04-07 22:01:18 +03:00
committed by Sergii Pylypenko
parent d0ddcdf1b7
commit dc5684681e

View File

@@ -176,7 +176,9 @@ struct BuildConfirmationWindow : Window {
} else {
ResetObjectToPlace();
DeleteWindowByClass(WC_BUILD_BRIDGE);
ClearErrorMessages();
//ClearErrorMessages();
Window *w = FindWindowById(WC_ERRMSG, 0);
if (w != NULL) delete w;
}
break;
}