summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-04-17 23:38:00 +0000
committeryexo <yexo@openttd.org>2010-04-17 23:38:00 +0000
commit2330851d1dc0650335bc73ec4cfd010f08c55742 (patch)
tree740b228dd6acdb372cc05d9442c5a0b19aaeac94 /src/build_vehicle_gui.cpp
parent893e405af09ed97261ff25de195b4bd6825bc8f6 (diff)
downloadopenttd-2330851d1dc0650335bc73ec4cfd010f08c55742.tar.xz
(svn r19669) -Fix: don't display an error message when double clicking on a vehicle in the 'available vehicles'-window
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r--src/build_vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}