diff options
author | frosch <frosch@openttd.org> | 2013-03-17 13:04:10 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-03-17 13:04:10 +0000 |
commit | 579ee7a59230db6d1caac8e653d27ccc6e454e2e (patch) | |
tree | 58aefe8ebad6e9dbeeda73f02f9a1071f22b091d /src/misc_gui.cpp | |
parent | 9cad36865fb6aeff8aeab6d28bea41f05d2c91e0 (diff) | |
download | openttd-579ee7a59230db6d1caac8e653d27ccc6e454e2e.tar.xz |
(svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index bd390c7bf..d6303fa35 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -764,7 +764,7 @@ HandleEditBoxResult QueryString::HandleEditBoxKey(Window *w, int wid, uint16 key break; default: - if (IsValidChar(key, this->afilter)) { + if (IsValidChar(key, this->text.afilter)) { edited = this->text.InsertChar(key); } else { state = ES_NOT_HANDLED; @@ -889,7 +889,7 @@ struct QueryStringWindow : public Window this->editbox.caption = caption; this->editbox.cancel_button = WID_QS_CANCEL; this->editbox.ok_button = WID_QS_OK; - this->editbox.afilter = afilter; + this->editbox.text.afilter = afilter; this->flags = flags; this->InitNested(desc, WN_QUERY_STRING); |