summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-12-09 16:54:23 +0000
committerfrosch <frosch@openttd.org>2012-12-09 16:54:23 +0000
commit2bb54f09d8ad249f009ab10c9b398fc8b444e5b3 (patch)
treed5736ee58665dd22c433bcca2a4e226c067d05be /src
parent8872ed12ff6631a36a306f63227b30b9bb50cac3 (diff)
downloadopenttd-2bb54f09d8ad249f009ab10c9b398fc8b444e5b3.tar.xz
(svn r24809) -Feature(ette) [FS#2632]: Consider engine preview windows always sticky, so non-shift mass-closure does not affect them.
Diffstat (limited to 'src')
-rw-r--r--src/engine_gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp
index bac56dce6..3a1332367 100644
--- a/src/engine_gui.cpp
+++ b/src/engine_gui.cpp
@@ -64,6 +64,9 @@ struct EnginePreviewWindow : Window {
EnginePreviewWindow(const WindowDesc *desc, WindowNumber window_number) : Window()
{
this->InitNested(desc, window_number);
+
+ /* There is no way to recover the window; so disallow closure via DEL; unless SHIFT+DEL */
+ this->flags |= WF_STICKY;
}
virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize)