changeset 15049:177c89d03be1 draft

(svn r19669) -Fix: don't display an error message when double clicking on a vehicle in the 'available vehicles'-window
author yexo <yexo@openttd.org>
date Sat, 17 Apr 2010 23:38:00 +0000
parents c2279fa6ec2e
children 73f4e0e490b7
files src/build_vehicle_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -1061,7 +1061,7 @@
 				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;
 			}