summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-10 08:58:52 +0000
committerrubidium <rubidium@openttd.org>2008-05-10 08:58:52 +0000
commit2c96ce4506163ad1528db6a4340964af99fc1de2 (patch)
tree746df1921c03a63762ea8a5c0a05a16d672c34fe /src/misc_gui.cpp
parent8ebfbc2bd3c8a74693057ac4c38844d1f50e3995 (diff)
downloadopenttd-2c96ce4506163ad1528db6a4340964af99fc1de2.tar.xz
(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 06af009d8..dc224d3f4 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1040,7 +1040,8 @@ static void QueryStringWndProc(Window *w, WindowEvent *e)
Window *parent = w->parent;
qs->handled = true;
- e.event = WE_ON_EDIT_TEXT_CANCEL;
+ e.event = WE_ON_EDIT_TEXT;
+ e.we.edittext.str = NULL;
parent->HandleWindowEvent(&e);
}
ClrBit(_no_scroll, SCROLL_EDIT);