1
0
Fork 0

(svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected.

release/0.7
rubidium 2008-09-12 17:38:57 +00:00
parent d6bc633870
commit 6d52fce720
1 changed files with 1 additions and 0 deletions

View File

@ -380,6 +380,7 @@ struct NewGRFWindow : public Window {
WIDGET_LIST_END
);
this->SetWidgetDisabledState(SNGRFS_SET_PARAMETERS, !this->show_params || disable_all);
this->SetWidgetDisabledState(SNGRFS_TOGGLE_PALETTE, disable_all);
if (!disable_all) {
/* All widgets are now enabled, so disable widgets we can't use */