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)