src/vehicle_gui.cpp
changeset 9976 b844c247532d
parent 9963 9823664dd4af
child 9978 4c10b20eaf54
equal deleted inserted replaced
9975:214628d1c9e8 9976:b844c247532d
   881 
   881 
   882 		BuildVehicleList(this, owner, index, window_type);
   882 		BuildVehicleList(this, owner, index, window_type);
   883 		SortVehicleList(this);
   883 		SortVehicleList(this);
   884 		SetVScrollCount(this, this->vehicles.Length());
   884 		SetVScrollCount(this, this->vehicles.Length());
   885 
   885 
       
   886 		if (this->vehicles.Length() == 0) HideDropDownMenu(this);
       
   887 
   886 		/* draw the widgets */
   888 		/* draw the widgets */
   887 		switch (window_type) {
   889 		switch (window_type) {
   888 			case VLW_SHARED_ORDERS: /* Shared Orders */
   890 			case VLW_SHARED_ORDERS: /* Shared Orders */
   889 				if (this->vehicles.Length() == 0) {
   891 				if (this->vehicles.Length() == 0) {
   890 					/* We can't open this window without vehicles using this order
   892 					/* We can't open this window without vehicles using this order