newgrf_gui.c
branch0.5
changeset 5455 547cba149cbd
parent 5416 87d5e006851b
equal deleted inserted replaced
5454:26572e97b611 5455:547cba149cbd
   463 			}
   463 			}
   464 			SetWindowDirty(w);
   464 			SetWindowDirty(w);
   465 			break;
   465 			break;
   466 
   466 
   467 		case WE_DESTROY:
   467 		case WE_DESTROY:
       
   468 			if (!WP(w, newgrf_d).execute) {
       
   469 				CopyGRFConfigList(WP(w, newgrf_d).orig_list, *WP(w, newgrf_d).list);
       
   470 			}
   468 			/* Remove the temporary copy of grf-list used in window */
   471 			/* Remove the temporary copy of grf-list used in window */
   469 			ClearGRFConfigList(WP(w, newgrf_d).list);
   472 			ClearGRFConfigList(WP(w, newgrf_d).list);
   470 			break;
   473 			break;
   471 
   474 
   472 		case WE_RESIZE:
   475 		case WE_RESIZE: