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/timetable_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/timetable_gui.cpp') diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index e63e8f305..5115b1063 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -249,6 +249,8 @@ static void TimetableWndProc(Window *w, WindowEvent *we) } break; case WE_ON_EDIT_TEXT: { + if (we->we.edittext.str == NULL) break; + const Vehicle *v = GetVehicle(w->window_number); uint32 p1 = PackTimetableArgs(v, WP(w, timetable_d).sel); -- cgit v1.2.3-54-g00ecf