diff options
author | frosch <frosch@openttd.org> | 2012-12-09 16:54:23 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-12-09 16:54:23 +0000 |
commit | 2bb54f09d8ad249f009ab10c9b398fc8b444e5b3 (patch) | |
tree | d5736ee58665dd22c433bcca2a4e226c067d05be /src | |
parent | 8872ed12ff6631a36a306f63227b30b9bb50cac3 (diff) | |
download | openttd-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.cpp | 3 |
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) |