mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 17:39:09 +00:00
(svn r25307) -Fix: Do not focus the editbox in the NewGRF window, if there is no editbox visible.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user