From d9b709ba45661705eca5288f9ce1c8c542540b70 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 1 Oct 2012 19:43:10 +0000 Subject: (svn r24568) -Codechange: No need to resort the group GUI when toggling the autoreplace protection. (Juanjo) --- src/group_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp index fbb043841..388ccf796 100644 --- a/src/group_cmd.cpp +++ b/src/group_cmd.cpp @@ -562,7 +562,7 @@ CommandCost CmdSetGroupReplaceProtection(TileIndex tile, DoCommandFlag flags, ui if (flags & DC_EXEC) { g->replace_protection = HasBit(p2, 0); - InvalidateWindowData(GetWindowClassForVehicleType(g->vehicle_type), VehicleListIdentifier(VL_GROUP_LIST, g->vehicle_type, _current_company).Pack()); + SetWindowDirty(GetWindowClassForVehicleType(g->vehicle_type), VehicleListIdentifier(VL_GROUP_LIST, g->vehicle_type, _current_company).Pack()); InvalidateWindowData(WC_REPLACE_VEHICLE, g->vehicle_type); } -- cgit v1.2.3-70-g09d2