From 4a09860c533da7f80bb1becf8ed6d4aa288c8f72 Mon Sep 17 00:00:00 2001 From: frosch Date: Fri, 25 Apr 2025 12:04:26 +0200 Subject: [PATCH] Fix: Focus settings filter box (only) when the tab becomes active. (#14100) --- src/settings_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 62d9366952..3107d6bf29 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -443,7 +443,6 @@ struct GameOptionsWindow : Window { this->querystrings[WID_GO_FILTER] = &this->filter_editbox; this->filter_editbox.cancel_button = QueryString::ACTION_CLEAR; - this->SetFocusedWidget(WID_GO_FILTER); this->OnInvalidateData(0); @@ -773,6 +772,7 @@ struct GameOptionsWindow : Window { } this->GetWidget(WID_GO_TAB_SELECTION)->SetDisplayedPlane(plane); + if (widget == WID_GO_TAB_ADVANCED) this->SetFocusedWidget(WID_GO_FILTER); this->SetDirty(); }