aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/DlgVideoSettings.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-05-25 20:58:32 +0200
committerArisotura <thetotalworm@gmail.com>2019-05-25 20:58:32 +0200
commiteb6fe823f8196373906916b47fbeecf5d7a63e8a (patch)
tree09ee4d75839e3b0acf1c1c11f18f604192635df8 /src/libui_sdl/DlgVideoSettings.cpp
parentaf581513fb98e37b6c8b3d856ad7f63d4d905040 (diff)
close any opened dialogs when closing the main window
Diffstat (limited to 'src/libui_sdl/DlgVideoSettings.cpp')
-rw-r--r--src/libui_sdl/DlgVideoSettings.cpp7
1 files changed, 7 insertions, 0 deletions
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;
+}
+
}