Mercurial > hg > openttd
changeset 19876:ae32de7b3f28 draft
(svn r24809) -Feature(ette) [FS#2632]: Consider engine preview windows always sticky, so non-shift mass-closure does not affect them.
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 09 Dec 2012 16:54:23 +0000 |
parents | 42520294087f |
children | 784e2ae3c6ba |
files | src/engine_gui.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/engine_gui.cpp +++ b/src/engine_gui.cpp @@ -64,6 +64,9 @@ 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)