diff options
author | Arisotura <thetotalworm@gmail.com> | 2019-05-25 20:58:32 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2019-05-25 20:58:32 +0200 |
commit | eb6fe823f8196373906916b47fbeecf5d7a63e8a (patch) | |
tree | 09ee4d75839e3b0acf1c1c11f18f604192635df8 /src/libui_sdl/DlgEmuSettings.cpp | |
parent | af581513fb98e37b6c8b3d856ad7f63d4d905040 (diff) |
close any opened dialogs when closing the main window
Diffstat (limited to 'src/libui_sdl/DlgEmuSettings.cpp')
-rw-r--r-- | src/libui_sdl/DlgEmuSettings.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libui_sdl/DlgEmuSettings.cpp b/src/libui_sdl/DlgEmuSettings.cpp index ad8c047..768560d 100644 --- a/src/libui_sdl/DlgEmuSettings.cpp +++ b/src/libui_sdl/DlgEmuSettings.cpp @@ -107,4 +107,11 @@ void Open() uiControlShow(uiControl(win)); } +void Close() +{ + if (!opened) return; + uiControlDestroy(uiControl(win)); + opened = false; +} + } |