From c83092130bcf869b7e985a24e2273ee74d233aa3 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 27 Feb 2007 16:07:04 +0000 Subject: (svn r8920) -Codechange: Do not require to press 'Apply changes' in the newgrf GUI if the changes in there are not activated (this happens in the title screen) --- src/newgrf_gui.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/newgrf_gui.cpp') diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 6d5a78b89..54cbdd536 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -485,6 +485,9 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) break; case WE_DESTROY: + if (!WP(w, newgrf_d).execute) { + CopyGRFConfigList(WP(w, newgrf_d).orig_list, *WP(w, newgrf_d).list); + } /* Remove the temporary copy of grf-list used in window */ ClearGRFConfigList(WP(w, newgrf_d).list); break; -- cgit v1.2.3-70-g09d2