src/newgrf_gui.cpp
branchcpp_gui
changeset 6285 187e3ef04cc9
parent 6268 4b5241e5dd10
child 6298 c30fe89622df
equal deleted inserted replaced
6284:45d0233e7d79 6285:187e3ef04cc9
   483 			}
   483 			}
   484 			w->SetDirty();
   484 			w->SetDirty();
   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 			}
   488 			/* Remove the temporary copy of grf-list used in window */
   491 			/* Remove the temporary copy of grf-list used in window */
   489 			ClearGRFConfigList(WP(w, newgrf_d).list);
   492 			ClearGRFConfigList(WP(w, newgrf_d).list);
   490 			break;
   493 			break;
   491 
   494 
   492 		case WE_RESIZE:
   495 		case WE_RESIZE: