Mercurial > hg > openttd
changeset 17686:3756519cf3c4 draft
(svn r22463) -Fix [FS#4615]: Update the fios GUI immediatelly after scanning a new directory, so queued events reach the window when already updated.
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 15 May 2011 12:30:14 +0000 |
parents | 75712bdb8713 |
children | b1762882d6c9 |
files | src/fios_gui.cpp |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -211,6 +211,9 @@ default: FiosGetSavegameList(_saveload_mode); break; } + + /* Invalidate saveload window */ + InvalidateWindowData(WC_SAVELOAD, 0, 2, true); } static void MakeSortedSaveGameList() @@ -684,6 +687,12 @@ !_load_check_data.HasNewGrfs()); } break; + case 2: + /* _fios_items changed */ + this->vscroll->SetCount(_fios_items.Length()); + this->selected = NULL; + _load_check_data.Clear(); + break; } } };