(svn r21246) -Fix: upon rescanning AIs the new AIs would (after some time) show up in the AI list but you could not select all

This commit is contained in:
rubidium
2010-11-18 22:24:10 +00:00
parent 1baf6fbae8
commit cc5fd40a74
3 changed files with 7 additions and 0 deletions

View File

@@ -187,6 +187,11 @@ struct AIListWindow : public Window {
this->vscroll->SetCapacity(nwi->current_y / this->line_height);
nwi->widget_data = (this->vscroll->GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START);
}
virtual void OnInvalidateData(int data)
{
this->vscroll->SetCount((int)this->ai_info_list->size() + 1);
}
};
/** Widgets for the AI list window. */