summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-12 17:38:57 +0000
committerrubidium <rubidium@openttd.org>2008-09-12 17:38:57 +0000
commit6d52fce720cec0d05ae1ad961c4db917e9085155 (patch)
treec0c50155cc1f4721317a5fac28c98e67002979b2 /src
parentd6bc63387059d71afb35615ea39afb85c38553a6 (diff)
downloadopenttd-6d52fce720cec0d05ae1ad961c4db917e9085155.tar.xz
(svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_gui.cpp1
1 files changed, 1 insertions, 0 deletions
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 */