From f23026cce8fa49974e3dd06e00dd073cb45f906b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 10 May 2008 08:58:52 +0000 Subject: (svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL. --- src/newgrf_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/newgrf_gui.cpp') diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index dca4db5f1..64548cf66 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -516,8 +516,9 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) /* parse_intlist returns -1 on error */ if (c->num_params == (byte)-1) c->num_params = 0; + + w->SetDirty(); } - w->SetDirty(); break; case WE_DESTROY: -- cgit v1.2.3-54-g00ecf