(svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf.

This commit is contained in:
frosch
2013-03-17 13:04:10 +00:00
parent 9cad36865f
commit 579ee7a592
11 changed files with 8 additions and 15 deletions

View File

@@ -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);