From 0adc04df1983da29d1603a56344e9ed0a45c113b Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Mon, 20 Nov 2017 10:05:32 +0300 Subject: [PATCH] Using ALT-F4 when running an unsaved cart will emit a tone #355 --- src/studio.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/studio.c b/src/studio.c index fe5d6f6..c0780ee 100644 --- a/src/studio.c +++ b/src/studio.c @@ -887,8 +887,12 @@ void setCursor(SDL_SystemCursor id) void hideDialog() { - studio.tic->api.resume(studio.tic); - studio.mode = TIC_RUN_MODE; + if(studio.dialogMode == TIC_RUN_MODE) + { + studio.tic->api.resume(studio.tic); + studio.mode = TIC_RUN_MODE; + } + else setStudioMode(studio.dialogMode); } void showDialog(const char** text, s32 rows, DialogCallback callback, void* data)