From 793d01ec74b76e8eda3d2df1b22b33fc5e254758 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 15 Apr 2019 19:12:37 +0100 Subject: [PATCH] Open train vehicle details window on total cargo tab if ctrl presed --- src/vehicle_gui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index e49bf64e8c..b416139889 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -2369,6 +2369,7 @@ struct VehicleDetailsWindow : Window { this->owner = v->owner; this->tab = TDW_TAB_CARGO; + if (v->type == VEH_TRAIN && _ctrl_pressed) this->tab = TDW_TAB_TOTALS; } ~VehicleDetailsWindow()