diff options
author | frosch <frosch@openttd.org> | 2012-11-13 21:46:33 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-13 21:46:33 +0000 |
commit | 137adb3496a47f79d4e0a15463c756341f8217a9 (patch) | |
tree | ccaf9feb2bd4c017c4684e220f0fcbff96e388e6 /src/window.cpp | |
parent | 2614ed18f9345dd41d461ea81e4cc1e5ec428e72 (diff) | |
download | openttd-137adb3496a47f79d4e0a15463c756341f8217a9.tar.xz |
(svn r24726) -Codechange: Move editbox mouseloop handling to Window class.
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp index 26e93dfa1..0ef7f8007 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1620,6 +1620,16 @@ static void DecreaseWindowCounters() } } } + + /* Handle editboxes */ + for (uint i = 0; i < w->nested_array_size; i++) { + NWidgetBase *nwid = w->nested_array[i]; + if (nwid != NULL && nwid->type == WWT_EDITBOX) { + QueryString *query = dynamic_cast<QueryString*>(w); + if (query != NULL) query->HandleEditBox(w, i); + } + } + w->OnMouseLoop(); } |