summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-22 22:54:38 +0000
committerrubidium <rubidium@openttd.org>2008-08-22 22:54:38 +0000
commit1fb68ddff558b59a09443ae62c6c096587e0e913 (patch)
tree23830557d2412ed40268176322a6ec111bdf2ded /src
parent9c3ba613471d92da19e412c5abbb2cb381fbd3ef (diff)
downloadopenttd-1fb68ddff558b59a09443ae62c6c096587e0e913.tar.xz
(svn r14133) -Fix [FS#2249]: close the 'manage vehicles' dropdown once the number of vehicles in the list reaches 0.
Diffstat (limited to 'src')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 2 insertions, 0 deletions
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 */