@@ -213,13 +213,18 @@ private:
}
/** Sort the grf list */
void SortGrfList()
{
if (!this->grfs.Sort()) return;
this->UpdateListPosition();
/** Update selection position. */
void UpdateListPosition()
/* update list position */
if (this->sel != NULL) {
this->sel_pos = this->grfs.FindIndex(this->sel);
if (this->sel_pos < 0) {
this->sel = NULL;
@@ -236,12 +241,13 @@ private:
/** Filter the grf list */
void FilterGrfList()
if (!this->grfs.Filter(this->edit_str_buf)) return;
/** Make sure that the currently selected grf is within the visible part of the list */
void ScrollToSelected()
if (this->sel_pos >= 0) {
Status change: