From fd54943c7a0dfa421eaa403b1cd18f06ccc4c6b9 Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 6 Sep 2010 14:14:09 +0000 Subject: (svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window --- src/group_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/group_gui.cpp') diff --git a/src/group_gui.cpp b/src/group_gui.cpp index e919ef6f6..562d358be 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -441,6 +441,7 @@ public: if (id_v >= this->vehicles.Length()) return; // click out of list bound const Vehicle *v = this->vehicles[id_v]; + if (VehicleClicked(v)) break; this->vehicle_sel = v->index; @@ -531,7 +532,7 @@ public: if (id_v >= this->vehicles.Length()) return; // click out of list bound const Vehicle *v = this->vehicles[id_v]; - if (vindex == v->index) { + if (!VehicleClicked(v) && vindex == v->index) { ShowVehicleViewWindow(v); } break; -- cgit v1.2.3-54-g00ecf