From 3bf9d3d3b160e5a17ac9ec1eb7887374b580670d Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 13 Feb 2020 21:32:19 +0100 Subject: [PATCH] [Script] Reload dialog, on selecting non-selectable item. --- source/dialogs/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dialogs/script.c b/source/dialogs/script.c index d9f1e26c..959f3c34 100644 --- a/source/dialogs/script.c +++ b/source/dialogs/script.c @@ -258,7 +258,7 @@ static ModeMode script_mode_result ( Mode *sw, int mretv, char **input, unsigned } else if ( ( mretv & MENU_OK ) && rmpd->cmd_list[selected_line].entry != NULL ) { if ( rmpd->cmd_list[selected_line].nonselectable ) { - return FALSE; + return RELOAD_DIALOG; } script_mode_reset_highlight ( sw ); new_list = execute_executor ( sw, rmpd->cmd_list[selected_line].entry, &new_length );