mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 01:19:11 +00:00
(svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected.
This commit is contained in:
@@ -380,6 +380,7 @@ struct NewGRFWindow : public Window {
|
|||||||
WIDGET_LIST_END
|
WIDGET_LIST_END
|
||||||
);
|
);
|
||||||
this->SetWidgetDisabledState(SNGRFS_SET_PARAMETERS, !this->show_params || disable_all);
|
this->SetWidgetDisabledState(SNGRFS_SET_PARAMETERS, !this->show_params || disable_all);
|
||||||
|
this->SetWidgetDisabledState(SNGRFS_TOGGLE_PALETTE, disable_all);
|
||||||
|
|
||||||
if (!disable_all) {
|
if (!disable_all) {
|
||||||
/* All widgets are now enabled, so disable widgets we can't use */
|
/* All widgets are now enabled, so disable widgets we can't use */
|
||||||
|
Reference in New Issue
Block a user