diff options
author | frosch <frosch@openttd.org> | 2013-05-31 18:47:49 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-05-31 18:47:49 +0000 |
commit | 4b286812c3eb8ef7bb9a675422363c3f2cb712a7 (patch) | |
tree | c7dd0ed8c14ce80d5e0060b516075c23159d0573 | |
parent | 7b3bd1addab5b64f8ce60c6e85089cb4d3e9c802 (diff) | |
download | openttd-4b286812c3eb8ef7bb9a675422363c3f2cb712a7.tar.xz |
(svn r25307) -Fix: Do not focus the editbox in the NewGRF window, if there is no editbox visible.
-rw-r--r-- | src/newgrf_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index eca23a18c..fc79decfa 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -646,7 +646,7 @@ struct NewGRFWindow : public Window, NewGRFScanCallback { 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); |