src/newgrf_gui.cpp
changeset 6164 5c074184856f
parent 6163 bb14fd7d587d
child 6166 07ccb150663d
equal deleted inserted replaced
6163:bb14fd7d587d 6164:5c074184856f
   483 			}
   483 			}
   484 			SetWindowDirty(w);
   484 			SetWindowDirty(w);
   485 			break;
   485 			break;
   486 
   486 
   487 		case WE_DESTROY:
   487 		case WE_DESTROY:
   488 			if (!WP(w, newgrf_d).execute) {
       
   489 				CopyGRFConfigList(WP(w, newgrf_d).orig_list, *WP(w, newgrf_d).list);
       
   490 			}
       
   491 			/* Remove the temporary copy of grf-list used in window */
   488 			/* Remove the temporary copy of grf-list used in window */
   492 			ClearGRFConfigList(WP(w, newgrf_d).list);
   489 			ClearGRFConfigList(WP(w, newgrf_d).list);
   493 			break;
   490 			break;
   494 
   491 
   495 		case WE_RESIZE:
   492 		case WE_RESIZE: