1
0
Fork 0

(svn r19669) -Fix: don't display an error message when double clicking on a vehicle in the 'available vehicles'-window

release/1.1
yexo 2010-04-17 23:38:00 +00:00
parent 893e405af0
commit 2330851d1d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}