From 579ee7a59230db6d1caac8e653d27ccc6e454e2e Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 17 Mar 2013 13:04:10 +0000 Subject: (svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf. --- src/misc_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/misc_gui.cpp') 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); -- cgit v1.2.3-54-g00ecf