summaryrefslogtreecommitdiff
path: root/src/engine_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2017-07-11 19:37:10 +0000
committerfrosch <frosch@openttd.org>2017-07-11 19:37:10 +0000
commita68296271916b48674b0a7cf13c7c63078cf4c73 (patch)
tree23774c0ec972186a90913c9ef00742dab92b0314 /src/engine_gui.cpp
parent64c5f00429da45e9aafbffd001379012543504c5 (diff)
downloadopenttd-a68296271916b48674b0a7cf13c7c63078cf4c73.tar.xz
(svn r27889) -Change: Do not cancel headquarter construction and engine-preview-query when shift-clicking (adf88)
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r--src/engine_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp
index 070ad6727..d1ccd3bf4 100644
--- a/src/engine_gui.cpp
+++ b/src/engine_gui.cpp
@@ -128,7 +128,7 @@ struct EnginePreviewWindow : Window {
DoCommandP(0, this->window_number, 0, CMD_WANT_ENGINE_PREVIEW);
/* FALL THROUGH */
case WID_EP_NO:
- delete this;
+ if (!_shift_pressed) delete this;
break;
}
}