diff options
Diffstat (limited to 'contrib/dialog/mixedform.c')
-rw-r--r-- | contrib/dialog/mixedform.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/contrib/dialog/mixedform.c b/contrib/dialog/mixedform.c index 1f18b2f..3da422f 100644 --- a/contrib/dialog/mixedform.c +++ b/contrib/dialog/mixedform.c @@ -1,5 +1,5 @@ /* - * $Id: mixedform.c,v 1.10 2013/03/17 15:03:41 tom Exp $ + * $Id: mixedform.c,v 1.12 2013/09/02 17:02:05 tom Exp $ * * mixedform.c -- implements the mixed form (i.e, typed pairs label/editbox) * @@ -54,6 +54,7 @@ dialog_mixedform(const char *title, DIALOG_FORMITEM *listitems; DIALOG_VARS save_vars; bool show_status = FALSE; + char *help_result; dlg_save_vars(&save_vars); dialog_vars.separate_output = TRUE; @@ -93,14 +94,9 @@ dialog_mixedform(const char *title, show_status = TRUE; break; case DLG_EXIT_HELP: - dlg_add_result("HELP "); + dlg_add_help_formitem(&result, &help_result, &listitems[choice]); show_status = dialog_vars.help_status; - if (USE_ITEM_HELP(listitems[choice].help)) { - dlg_add_string(listitems[choice].help); - result = DLG_EXIT_ITEM_HELP; - } else { - dlg_add_string(listitems[choice].name); - } + dlg_add_string(help_result); if (show_status) dlg_add_separator(); break; |