summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-13 21:46:40 +0000
committerfrosch <frosch@openttd.org>2012-11-13 21:46:40 +0000
commit336fcbc50e89b357fa5b9e059961b4a0c00de59e (patch)
treee3165e1ff0b4ad7920f0e75d33b92dac410fa7b5 /src/network
parent1071d51508695978adcf9a184e0a26a65fff2705 (diff)
downloadopenttd-336fcbc50e89b357fa5b9e059961b4a0c00de59e.tar.xz
(svn r24728) -Codechange: Unify usage of OnOSKInput.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content_gui.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index bb9ca07f0..ed4010d40 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -788,10 +788,12 @@ public:
virtual void OnOSKInput(int wid)
{
- this->string_filter.SetFilterTerm(this->edit_str_buf);
- this->content.SetFilterState(!this->string_filter.IsEmpty());
- this->content.ForceRebuild();
- this->InvalidateData();
+ if (wid == WID_NCL_FILTER) {
+ this->string_filter.SetFilterTerm(this->edit_str_buf);
+ this->content.SetFilterState(!this->string_filter.IsEmpty());
+ this->content.ForceRebuild();
+ this->InvalidateData();
+ }
}
virtual void OnResize()