Changeset - r10115:ce5ea0a7b71c
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-09-12 17:38:57
rubidium@openttd.org
(svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf_gui.cpp
Show inline comments
 
@@ -377,12 +377,13 @@ struct NewGRFWindow : public Window {
 
			SNGRFS_REMOVE,
 
			SNGRFS_MOVE_UP,
 
			SNGRFS_MOVE_DOWN,
 
			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 */
 
			if (this->sel == this->list)       this->DisableWidget(SNGRFS_MOVE_UP);
 
			if (this->sel->next == NULL)       this->DisableWidget(SNGRFS_MOVE_DOWN);
 
			if (this->sel->IsOpenTTDBaseGRF()) this->DisableWidget(SNGRFS_REMOVE);
0 comments (0 inline, 0 general)