Small update trying to fix past commit.

This commit is contained in:
QC 2014-11-29 16:54:42 +01:00
parent 6805d93f68
commit e2a3139b7d
2 changed files with 8 additions and 4 deletions

View File

@ -1654,12 +1654,16 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
*( state.selected_line ) = state.line_map[state.selected];
if ( strlen ( state.text->text ) > 0 && rc == -2 ) {
state.retv = MENU_CUSTOM_INPUT;
} else {
}
else {
state.retv = MENU_OK;
}
}
// Nothing entered and nothing selected.
else if ( rc == -2 ) {
state.retv = MENU_CUSTOM_INPUT;
}
else{
// Nothing entered and nothing selected.
state.retv = MENU_CANCEL;
}