From 813b67312ac737d7624201f3c36ccdcf6c2f1ab3 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 17 Oct 2006 17:10:39 +0000 Subject: (svn r6801) - Fix (r6619): Always disable the train refit button. It will be enabled later if refitting is possible. --- train_gui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'train_gui.c') diff --git a/train_gui.c b/train_gui.c index 53f761911..6e49831d2 100644 --- a/train_gui.c +++ b/train_gui.c @@ -763,9 +763,11 @@ static void TrainViewWndProc(Window *w, WindowEvent *e) SetWindowWidgetDisabledState(w, 7, !is_localplayer); SetWindowWidgetDisabledState(w, 8, !is_localplayer); SetWindowWidgetDisabledState(w, 9, !is_localplayer); - SetWindowWidgetDisabledState(w, 12, !is_localplayer); SetWindowWidgetDisabledState(w, 13, !is_localplayer); + /* Disable cargo refit button, until we know we can enable it below. */ + DisableWindowWidget(w, 12); + if (is_localplayer) { /* See if any vehicle can be refitted */ for (u = v; u != NULL; u = u->next) { -- cgit v1.2.3-54-g00ecf