From eb6fe823f8196373906916b47fbeecf5d7a63e8a Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sat, 25 May 2019 20:58:32 +0200 Subject: close any opened dialogs when closing the main window --- src/libui_sdl/DlgVideoSettings.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libui_sdl/DlgVideoSettings.cpp') diff --git a/src/libui_sdl/DlgVideoSettings.cpp b/src/libui_sdl/DlgVideoSettings.cpp index 69e5ac5..8749dc5 100644 --- a/src/libui_sdl/DlgVideoSettings.cpp +++ b/src/libui_sdl/DlgVideoSettings.cpp @@ -306,4 +306,11 @@ void Open() uiControlShow(uiControl(win)); } +void Close() +{ + if (!opened) return; + uiControlDestroy(uiControl(win)); + opened = false; +} + } -- cgit v1.2.3