summaryrefslogtreecommitdiff
path: root/src/osk_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-13 21:47:07 +0000
committerfrosch <frosch@openttd.org>2012-11-13 21:47:07 +0000
commit2c22fe98ddae45d1553003a00a7ea0a301e9aa99 (patch)
tree2fd5045b9283a129c73b969e1ef686ecd17de93a /src/osk_gui.cpp
parentc4d7c8dd427287d42374b5a83842f570642b100c (diff)
downloadopenttd-2c22fe98ddae45d1553003a00a7ea0a301e9aa99.tar.xz
(svn r24734) -Codechange: Move QueryStringBaseWindow::OnOSKInput to Window::OnEditboxChanged.
Diffstat (limited to 'src/osk_gui.cpp')
-rw-r--r--src/osk_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp
index 2dadb88cd..800b5ef54 100644
--- a/src/osk_gui.cpp
+++ b/src/osk_gui.cpp
@@ -203,8 +203,7 @@ struct OskWindow : public Window {
void InvalidateParent()
{
- QueryStringBaseWindow *w = dynamic_cast<QueryStringBaseWindow*>(this->parent);
- if (w != NULL) w->OnOSKInput(this->text_btn);
+ this->parent->OnEditboxChanged(this->text_btn);
this->SetWidgetDirty(WID_OSK_TEXT);
if (this->parent != NULL) this->parent->SetWidgetDirty(this->text_btn);