mirror of https://github.com/OpenTTD/OpenTTD
(svn r27724) -Cleanup: Remove pointless usage of IsOpenTTDBaseGRF. System GRFs are never listed in the NewGRF GUI.
parent
b363a639aa
commit
4df712589c
|
@ -1279,7 +1279,6 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
|
||||||
/* All widgets are now enabled, so disable widgets we can't use */
|
/* All widgets are now enabled, so disable widgets we can't use */
|
||||||
if (this->active_sel == this->actives) this->DisableWidget(WID_NS_MOVE_UP);
|
if (this->active_sel == this->actives) this->DisableWidget(WID_NS_MOVE_UP);
|
||||||
if (this->active_sel->next == NULL) this->DisableWidget(WID_NS_MOVE_DOWN);
|
if (this->active_sel->next == NULL) this->DisableWidget(WID_NS_MOVE_DOWN);
|
||||||
if (this->active_sel->IsOpenTTDBaseGRF()) this->DisableWidget(WID_NS_REMOVE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this->SetWidgetDisabledState(WID_NS_PRESET_DELETE, this->preset == -1);
|
this->SetWidgetDisabledState(WID_NS_PRESET_DELETE, this->preset == -1);
|
||||||
|
|
Loading…
Reference in New Issue