mirror of https://github.com/OpenTTD/OpenTTD
(svn r18314) -Fix: Disable 'start date' button for timetable windows of other companies.
parent
692a45c352
commit
6734252dfa
|
@ -324,9 +324,11 @@ struct TimetableWindow : Window {
|
||||||
this->SetWidgetDisabledState(TTV_CLEAR_TIME, disable);
|
this->SetWidgetDisabledState(TTV_CLEAR_TIME, disable);
|
||||||
this->SetWidgetDisabledState(TTV_SHARED_ORDER_LIST, !v->IsOrderListShared());
|
this->SetWidgetDisabledState(TTV_SHARED_ORDER_LIST, !v->IsOrderListShared());
|
||||||
|
|
||||||
|
this->EnableWidget(TTV_START_DATE);
|
||||||
this->EnableWidget(TTV_RESET_LATENESS);
|
this->EnableWidget(TTV_RESET_LATENESS);
|
||||||
this->EnableWidget(TTV_AUTOFILL);
|
this->EnableWidget(TTV_AUTOFILL);
|
||||||
} else {
|
} else {
|
||||||
|
this->DisableWidget(TTV_START_DATE);
|
||||||
this->DisableWidget(TTV_CHANGE_TIME);
|
this->DisableWidget(TTV_CHANGE_TIME);
|
||||||
this->DisableWidget(TTV_CLEAR_TIME);
|
this->DisableWidget(TTV_CLEAR_TIME);
|
||||||
this->DisableWidget(TTV_RESET_LATENESS);
|
this->DisableWidget(TTV_RESET_LATENESS);
|
||||||
|
|
Loading…
Reference in New Issue