forked from mirror/OpenTTD
(svn r25413) -Fix-ish: Suppress focussing editboxes which are not visible.
This commit is contained in:
@@ -646,7 +646,11 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
|
||||
|
||||
this->querystrings[WID_NS_FILTER] = &this->filter_editbox;
|
||||
this->filter_editbox.cancel_button = QueryString::ACTION_CLEAR;
|
||||
if (editable) this->SetFocusedWidget(WID_NS_FILTER);
|
||||
if (editable) {
|
||||
this->SetFocusedWidget(WID_NS_FILTER);
|
||||
} else {
|
||||
this->DisableWidget(WID_NS_FILTER);
|
||||
}
|
||||
|
||||
this->avails.SetListing(this->last_sorting);
|
||||
this->avails.SetFiltering(this->last_filtering);
|
||||
|
Reference in New Issue
Block a user