diff options
author | yexo <yexo@openttd.org> | 2010-04-17 23:38:00 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-04-17 23:38:00 +0000 |
commit | 2330851d1dc0650335bc73ec4cfd010f08c55742 (patch) | |
tree | 740b228dd6acdb372cc05d9442c5a0b19aaeac94 /src | |
parent | 893e405af09ed97261ff25de195b4bd6825bc8f6 (diff) | |
download | openttd-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')
-rw-r--r-- | src/build_vehicle_gui.cpp | 2 |
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; } |