[Script] Reload dialog, on selecting non-selectable item.

This commit is contained in:
Dave Davenport 2020-02-13 21:32:19 +01:00
parent c458047ef6
commit 3bf9d3d3b1
1 changed files with 1 additions and 1 deletions

View File

@ -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 );