From 1fb68ddff558b59a09443ae62c6c096587e0e913 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 22 Aug 2008 22:54:38 +0000 Subject: (svn r14133) -Fix [FS#2249]: close the 'manage vehicles' dropdown once the number of vehicles in the list reaches 0. --- src/vehicle_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 6ccc7ce79..55f254532 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -883,6 +883,8 @@ struct VehicleListWindow : public Window, public VehicleListBase { SortVehicleList(this); SetVScrollCount(this, this->vehicles.Length()); + if (this->vehicles.Length() == 0) HideDropDownMenu(this); + /* draw the widgets */ switch (window_type) { case VLW_SHARED_ORDERS: /* Shared Orders */ -- cgit v1.2.3-70-g09d2