diff options
author | frosch <frosch@openttd.org> | 2012-11-13 21:46:40 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-13 21:46:40 +0000 |
commit | 336fcbc50e89b357fa5b9e059961b4a0c00de59e (patch) | |
tree | e3165e1ff0b4ad7920f0e75d33b92dac410fa7b5 /src/settings_gui.cpp | |
parent | 1071d51508695978adcf9a184e0a26a65fff2705 (diff) | |
download | openttd-336fcbc50e89b357fa5b9e059961b4a0c00de59e.tar.xz |
(svn r24728) -Codechange: Unify usage of OnOSKInput.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 6d11042d3..c74098ae5 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -2418,13 +2418,15 @@ struct GameSettingsWindow : QueryStringBaseWindow { virtual void OnOSKInput(int wid) { - string_filter.SetFilterTerm(this->edit_str_buf); - if (!string_filter.IsEmpty() && !this->manually_changed_folding) { - /* User never expanded/collapsed single pages and entered a filter term. - * Expand everything, to save weird expand clicks, */ - _settings_main_page.UnFoldAll(); + if (wid == WID_GS_FILTER) { + string_filter.SetFilterTerm(this->edit_str_buf); + if (!string_filter.IsEmpty() && !this->manually_changed_folding) { + /* User never expanded/collapsed single pages and entered a filter term. + * Expand everything, to save weird expand clicks, */ + _settings_main_page.UnFoldAll(); + } + this->InvalidateData(); } - this->InvalidateData(); } virtual void OnResize() |