mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-10 00:11:31 +00:00
(svn r24130) -Feature(ette): [FS#2314]: Deselect 'remove' button when changing signal types in the GUI. (Alberth)
This commit is contained in:
parent
708d5b6712
commit
f1c59a3159
@ -1526,6 +1526,13 @@ public:
|
||||
|
||||
_cur_signal_type = (SignalType)((uint)((widget - WID_BS_SEMAPHORE_NORM) % (SIGTYPE_LAST + 1)));
|
||||
_cur_signal_variant = widget >= WID_BS_ELECTRIC_NORM ? SIG_ELECTRIC : SIG_SEMAPHORE;
|
||||
|
||||
/* If 'remove' button of rail build toolbar is active, disable it. */
|
||||
if (_remove_button_clicked) {
|
||||
Window *w = FindWindowById(WC_BUILD_TOOLBAR, TRANSPORT_RAIL);
|
||||
if (w != NULL) ToggleRailButton_Remove(w);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case WID_BS_CONVERT:
|
||||
|
Loading…
Reference in New Issue
Block a user