diff options
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) |