diff options
author | frosch <frosch@openttd.org> | 2011-03-13 21:35:50 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-03-13 21:35:50 +0000 |
commit | cba6eb87c2493e9d86d37db865bb85817d451c80 (patch) | |
tree | 48a638f5db7c8570fa43b1e64a9770bf95a37452 /src/fios_gui.cpp | |
parent | 141f2eba50aa0e475a49610b05c00d0f549ae53f (diff) | |
download | openttd-cba6eb87c2493e9d86d37db865bb85817d451c80.tar.xz |
(svn r22249) -Codechange: Process some more invalidation of IDs during command scope.
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r-- | src/fios_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp index c87167882..3b97b420b 100644 --- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -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())); |