File diff r16067:5c0ee6355187 → r16068:f32ba8cfc408
src/group_gui.cpp
Show inline comments
 
@@ -187,13 +187,14 @@ public:
 
		this->group_rename = INVALID_GROUP;
 

	
 
		const Owner owner = (Owner)GB(window_number, 0, 8);
 
		this->vehicles.SetListing(*this->sorting);
 
		this->vehicles.ForceRebuild();
 
		this->vehicles.NeedResort();
 
		this->BuildVehicleList(owner, this->group_sel, IsAllGroupID(this->group_sel) ? VLW_STANDARD : VLW_GROUP_LIST);
 
		VehicleListIdentifier vli(IsAllGroupID(this->group_sel) ? VL_STANDARD : VL_GROUP_LIST, this->vehicle_type, owner, this->group_sel);
 
		this->BuildVehicleList(vli);
 
		this->SortVehicleList();
 

	
 
		this->groups.ForceRebuild();
 
		this->groups.NeedResort();
 
		this->BuildGroupList(owner);
 
		this->groups.Sort(&GroupNameSorter);
 
@@ -299,13 +300,14 @@ public:
 
	virtual void OnPaint()
 
	{
 
		const Owner owner = (Owner)GB(this->window_number, 0, 8);
 

	
 
		/* If we select the all vehicles, this->list will contain all vehicles of the owner
 
		 * else this->list will contain all vehicles which belong to the selected group */
 
		this->BuildVehicleList(owner, this->group_sel, IsAllGroupID(this->group_sel) ? VLW_STANDARD : VLW_GROUP_LIST);
 
		VehicleListIdentifier vli(IsAllGroupID(this->group_sel) ? VL_STANDARD : VL_GROUP_LIST, this->vehicle_type, owner, this->group_sel);
 
		this->BuildVehicleList(vli);
 
		this->SortVehicleList();
 

	
 
		this->BuildGroupList(owner);
 
		this->groups.Sort(&GroupNameSorter);
 

	
 
		this->group_sb->SetCount(this->groups.Length());