# HG changeset patch # User frosch # Date 2013-05-31 18:47:49 # Node ID c9a1fb7bc57b430f8b1634e84f31b6ad72fbad54 # Parent a72ff66cd42fc1405c2d8419f1eaf3d325e5de7a (svn r25307) -Fix: Do not focus the editbox in the NewGRF window, if there is no editbox visible. diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -646,7 +646,7 @@ struct NewGRFWindow : public Window, New this->querystrings[WID_NS_FILTER] = &this->filter_editbox; this->filter_editbox.cancel_button = QueryString::ACTION_CLEAR; - this->SetFocusedWidget(WID_NS_FILTER); + if (editable) this->SetFocusedWidget(WID_NS_FILTER); this->avails.SetListing(this->last_sorting); this->avails.SetFiltering(this->last_filtering);