summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-23 23:37:49 +0000
committerrubidium <rubidium@openttd.org>2009-01-23 23:37:49 +0000
commitd5465604dc87a2c27d17ff617ae78059a2b4d9c4 (patch)
tree777b6b60417f082eb3bc7fc089128df10d435459 /src/newgrf_gui.cpp
parent2eb5af3bb840ac0dcabec9f1e3604aa119e01baa (diff)
downloadopenttd-d5465604dc87a2c27d17ff617ae78059a2b4d9c4.tar.xz
(svn r15245) -Fix: don't "save" the NewGRF settings on closing the NewGRF window when the content of the window isn't editable
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp2
1 files changed, 1 insertions, 1 deletions
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();