Fix #8922: Show vehicle window for single vehicle in shared order grouping (#8926)

This commit is contained in:
Bernard Teo
2021-04-07 02:30:35 +08:00
committed by GitHub
parent 2f5035d6dc
commit f0a24e98f5
2 changed files with 13 additions and 3 deletions

View File

@@ -892,7 +892,11 @@ public:
/* We do not support VehicleClicked() here since the contextual action may only make sense for individual vehicles */
if (vindex == v->index) {
ShowVehicleListWindow(v);
if (vehgroup.NumVehicles() == 1) {
ShowVehicleViewWindow(v);
} else {
ShowVehicleListWindow(v);
}
}
break;
}