diff options
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 3 |
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); |