From 3a38eb6861a1afbf40258ab6c538dba06e9bb5dd Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 3 Dec 2023 22:56:29 +0000 Subject: [PATCH] Fix initial info totals when opening group/vehicle window --- src/group_gui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 7c1d84550d..95740f4d35 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -429,8 +429,6 @@ public: this->BuildGroupList(vli.company); this->group_sb->SetCount(this->groups.size()); - this->RecalculateInfoTotals(); - this->GetWidget(WID_GL_CAPTION)->widget_data = STR_VEHICLE_LIST_TRAIN_CAPTION + this->vli.vtype; this->GetWidget(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