Fix initial info totals when opening group/vehicle window

This commit is contained in:
Jonathan G Rennison
2023-12-03 22:56:29 +00:00
parent b9621474d0
commit 3a38eb6861

View File

@@ -429,8 +429,6 @@ public:
this->BuildGroupList(vli.company); this->BuildGroupList(vli.company);
this->group_sb->SetCount(this->groups.size()); 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_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; 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->BuildVehicleList();
this->SortVehicleList(); this->SortVehicleList();
this->RecalculateInfoTotals();
} }
void Close(int data = 0) override void Close(int data = 0) override