From 2330851d1dc0650335bc73ec4cfd010f08c55742 Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 17 Apr 2010 23:38:00 +0000 Subject: (svn r19669) -Fix: don't display an error message when double clicking on a vehicle in the 'available vehicles'-window --- src/build_vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 3b2644956..e7b4dbf9c 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -1061,7 +1061,7 @@ struct BuildVehicleWindow : Window { size_t num_items = this->eng_list.Length(); this->sel_engine = (i < num_items) ? this->eng_list[i] : INVALID_ENGINE; this->SetDirty(); - if (click_count > 1) this->OnClick(pt, BUILD_VEHICLE_WIDGET_BUILD, 1); + if (click_count > 1 && !this->listview_mode) this->OnClick(pt, BUILD_VEHICLE_WIDGET_BUILD, 1); break; } -- cgit v1.2.3-70-g09d2