changeset 10115:58807491379d draft

(svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected.
author rubidium <rubidium@openttd.org>
date Fri, 12 Sep 2008 17:38:57 +0000
parents 85931c67ed00
children d8a303e8f746
files src/newgrf_gui.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -380,6 +380,7 @@
 			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 */