From 6d52fce720cec0d05ae1ad961c4db917e9085155 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 12 Sep 2008 17:38:57 +0000 Subject: (svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected. --- src/newgrf_gui.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/newgrf_gui.cpp') diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index b23136e0b..34ff973af 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -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 */ -- cgit v1.2.3-54-g00ecf