(svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected.
authorrubidium
Fri, 12 Sep 2008 17:38:57 +0000
changeset 10115 e162dbf901d2
parent 10114 1ce7c1597f10
child 10116 d21d0a0902a4
(svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected.
src/newgrf_gui.cpp
--- a/src/newgrf_gui.cpp	Fri Sep 12 17:16:04 2008 +0000
+++ b/src/newgrf_gui.cpp	Fri Sep 12 17:38:57 2008 +0000
@@ -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 */