diff options
author | Cheng Renquan <crquan@gmail.com> | 2009-07-12 16:11:47 +0800 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-09-20 12:27:41 +0200 |
commit | d74c15f3b71804472dde59355d4960ce8287dae8 (patch) | |
tree | 21efeb59823b303732e31722e469bf61a3bc5941 /scripts/kconfig/qconf.cc | |
parent | 1d525e7c1f8c34b74ddeb317f18c2ca9e9d81884 (diff) |
kconfig: make use of menu_get_ext_help in qconfig
Signed-off-by: Cheng Renquan <crquan@gmail.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r-- | scripts/kconfig/qconf.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index ce7d508c752..00c51507cfc 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -1042,12 +1042,10 @@ void ConfigInfoView::menuInfo(void) if (showDebug()) debug = debug_info(sym); - help = menu_get_help(menu); - /* Gettextize if the help text not empty */ - if (help.isEmpty()) - help = print_filter(menu_get_help(menu)); - else - help = print_filter(_(menu_get_help(menu))); + struct gstr help_gstr = str_new(); + menu_get_ext_help(menu, &help_gstr); + help = print_filter(str_get(&help_gstr)); + str_free(&help_gstr); } else if (menu->prompt) { head += "<big><b>"; head += print_filter(_(menu->prompt->text)); |