diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index d5858a3c8164..52978d093b1f 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -5539,6 +5539,9 @@ int action_ok_close_content(const char *path, const char *label, unsigned type, * menu list) */ menu_st->selection_ptr = 0; + /* Check if we need to quit */ + check_quit_on_close(); + /* Unload core */ ret = generic_action_ok_command(CMD_EVENT_UNLOAD_CORE); @@ -5572,8 +5575,6 @@ int action_ok_close_content(const char *path, const char *label, unsigned type, menu_st->flags &= ~MENU_ST_FLAG_PREVENT_POPULATE; } - check_quit_on_close(); - return ret; }