File diff r17483:fc8b6fa18903 → r17484:696d6356f836
src/fios_gui.cpp
Show inline comments
 
@@ -666,16 +666,17 @@ public:
 
	 */
 
	virtual void OnInvalidateData(int data = 0, bool gui_scope = true)
 
	{
 
		if (!gui_scope) return;
 
		switch (data) {
 
			case 0:
 
				/* Rescan files */
 
				this->selected = NULL;
 
				_load_check_data.Clear();
 
				if (!gui_scope) break;
 
				BuildFileList();
 
				/* FALL THROUGH */
 
			case 1:
 
				/* Selection changes */
 
				if (!gui_scope) break;
 
				if (_saveload_mode == SLD_LOAD_GAME || _saveload_mode == SLD_LOAD_SCENARIO) {
 
					this->SetWidgetDisabledState(SLWW_LOAD_BUTTON,
 
							this->selected == NULL || _load_check_data.HasErrors() || !(_load_check_data.grf_compatibility != GLC_NOT_FOUND || _settings_client.gui.UserIsAllowedToChangeNewGRFs()));