(svn r14133) -Fix [FS#2249]: close the 'manage vehicles' dropdown once the number of vehicles in the list reaches 0.
authorrubidium
Fri, 22 Aug 2008 22:54:38 +0000
changeset 9976 b844c247532d
parent 9975 214628d1c9e8
child 9977 91adacb0591d
(svn r14133) -Fix [FS#2249]: close the 'manage vehicles' dropdown once the number of vehicles in the list reaches 0.
src/vehicle_gui.cpp
--- a/src/vehicle_gui.cpp	Fri Aug 22 22:48:12 2008 +0000
+++ b/src/vehicle_gui.cpp	Fri Aug 22 22:54:38 2008 +0000
@@ -883,6 +883,8 @@
 		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 */