From b76359d4852f6ae08f35f01631d52417ec02f714 Mon Sep 17 00:00:00 2001 From: cakepie Date: Sat, 3 Dec 2022 09:51:03 +0800 Subject: [PATCH] Departure boards: Fix no entries shown if "show both" setting turned on while window already open with "Show Deps" false --- src/departures_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/departures_gui.cpp b/src/departures_gui.cpp index 2e74b38a62..32f560a754 100644 --- a/src/departures_gui.cpp +++ b/src/departures_gui.cpp @@ -467,7 +467,7 @@ public: this->DeleteDeparturesList(this->arrivals); bool show_pax = _settings_client.gui.departure_only_passengers ? true : this->show_pax; bool show_freight = _settings_client.gui.departure_only_passengers ? false : this->show_freight; - this->departures = (this->departure_types[0] ? MakeDepartureList(this->station, this->vehicles, D_DEPARTURE, Twaypoint || this->departure_types[2], show_pax, show_freight) : new DepartureList()); + this->departures = (this->departure_types[0] || _settings_client.gui.departure_show_both ? MakeDepartureList(this->station, this->vehicles, D_DEPARTURE, Twaypoint || this->departure_types[2], show_pax, show_freight) : new DepartureList()); this->arrivals = (this->departure_types[1] && !_settings_client.gui.departure_show_both ? MakeDepartureList(this->station, this->vehicles, D_ARRIVAL, false, show_pax, show_freight) : new DepartureList()); this->departures_invalid = false; this->SetWidgetDirty(WID_DB_LIST);