Fix initial info totals when opening group/vehicle window

wip-string
Jonathan G Rennison 6 months ago
parent b9621474d0
commit 3a38eb6861

@ -429,8 +429,6 @@ public:
this->BuildGroupList(vli.company);
this->group_sb->SetCount(this->groups.size());
this->RecalculateInfoTotals();
this->GetWidget<NWidgetCore>(WID_GL_CAPTION)->widget_data = STR_VEHICLE_LIST_TRAIN_CAPTION + this->vli.vtype;
this->GetWidget<NWidgetCore>(WID_GL_LIST_VEHICLE)->tool_tip = STR_VEHICLE_LIST_TRAIN_LIST_TOOLTIP + this->vli.vtype;
@ -445,6 +443,7 @@ public:
this->BuildVehicleList();
this->SortVehicleList();
this->RecalculateInfoTotals();
}
void Close(int data = 0) override

Loading…
Cancel
Save