# HG changeset patch # User Darkvater # Date 1168696865 0 # Node ID 5e0f0faf50fc5ea4d831bf8709751fd080269b4f # Parent 262234e813333246fcbe3e7f930a272a10d22c98 (svn r8094) -Feature/Fix (r7523): Show the activated status of the GRF list after pressing 'apply' in the newgrf window, instead of the local list. diff -r 262234e81333 -r 5e0f0faf50fc src/newgrf_gui.cpp --- a/src/newgrf_gui.cpp Sat Jan 13 13:47:57 2007 +0000 +++ b/src/newgrf_gui.cpp Sat Jan 13 14:01:05 2007 +0000 @@ -278,9 +278,19 @@ { if (confirmed) { newgrf_d *nd = &WP(w, newgrf_d); + GRFConfig *c; + int i = 0; CopyGRFConfigList(nd->orig_list, *nd->list); ReloadNewGRFData(); + + /* Show new, updated list */ + for (c = *nd->list; c != NULL && c != nd->sel; c = c->next, i++); + CopyGRFConfigList(nd->list, *nd->orig_list); + for (c = *nd->list; c != NULL && i > 0; c = c->next, i--); + nd->sel = c; + + SetWindowDirty(w); } }