From 672382f9606a30d1242780fe94f0a072be32f994 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 30 Aug 2023 23:22:37 +0100 Subject: [PATCH] Tracrestrict: Fix non-train slot windows allowing unusable sort modes --- src/tracerestrict_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tracerestrict_gui.cpp b/src/tracerestrict_gui.cpp index 976e386f43..46c5d9e990 100644 --- a/src/tracerestrict_gui.cpp +++ b/src/tracerestrict_gui.cpp @@ -4027,7 +4027,8 @@ public: break; case WID_TRSL_SORT_BY_DROPDOWN: // Select sorting criteria dropdown menu - ShowDropDownMenu(this, this->vehicle_group_none_sorter_names, this->vehgroups.SortType(), WID_TRSL_SORT_BY_DROPDOWN, 0, 0); + ShowDropDownMenu(this, this->vehicle_group_none_sorter_names, this->vehgroups.SortType(), WID_TRSL_SORT_BY_DROPDOWN, 0, + this->GetSorterDisableMask(this->vli.vtype), 0, DDSF_LOST_FOCUS); return; case WID_TRSL_FILTER_BY_CARGO: // Cargo filter dropdown