(svn r22463) -Fix [FS#4615]: Update the fios GUI immediatelly after scanning a new directory, so queued events reach the window when already updated.

This commit is contained in:
frosch 2011-05-15 12:30:14 +00:00
parent 990ec6f0a9
commit 4c63d8e82f
1 changed files with 9 additions and 0 deletions

View File

@ -211,6 +211,9 @@ void BuildFileList()
default: FiosGetSavegameList(_saveload_mode); break;
}
/* Invalidate saveload window */
InvalidateWindowData(WC_SAVELOAD, 0, 2, true);
}
static void MakeSortedSaveGameList()
@ -684,6 +687,12 @@ public:
!_load_check_data.HasNewGrfs());
}
break;
case 2:
/* _fios_items changed */
this->vscroll->SetCount(_fios_items.Length());
this->selected = NULL;
_load_check_data.Clear();
break;
}
}
};