From aff27ca884a1d77fc4ed4faeebd2afed6f7c9851 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 23 Jan 2009 23:37:49 +0000 Subject: (svn r15245) -Fix: don't "save" the NewGRF settings on closing the NewGRF window when the content of the window isn't editable --- src/newgrf_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 727440b08..f27883769 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -342,7 +342,7 @@ struct NewGRFWindow : public Window { ~NewGRFWindow() { - if (!this->execute) { + if (this->editable && !this->execute) { CopyGRFConfigList(this->orig_list, this->list, true); ResetGRFConfig(false); ReloadNewGRFData(); -- cgit v1.2.3-54-g00ecf