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

This commit is contained in:
Bernard Teo
2021-04-02 03:14:24 +08:00
committed by dP
parent c92a198ef5
commit 036b73a4e1
2 changed files with 15 additions and 3 deletions

View File

@@ -894,7 +894,12 @@ 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;
}