Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kconfig: qconf: do not show checkbox icon for choice

When you select "Show All Options" or "Show Prompt Options", choice
entries display a check box icon, but this has no point because
choice is always y since commit fde192511bdb ("kconfig: remove tristate
choice support").

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>

+6 -5
+6 -5
scripts/kconfig/qconf.cc
··· 92 92 { 93 93 ConfigList* list; 94 94 struct symbol* sym; 95 - struct property *prop; 96 95 QString prompt; 97 96 int type; 98 97 tristate expr; ··· 104 105 } 105 106 106 107 sym = menu->sym; 107 - prop = menu->prompt; 108 108 prompt = menu_get_prompt(menu); 109 109 110 - if (prop) switch (prop->type) { 111 - case P_MENU: 110 + switch (menu->type) { 111 + case M_MENU: 112 112 if (list->mode == singleMode) { 113 113 /* a menuconfig entry is displayed differently 114 114 * depending whether it's at the view root or a child. ··· 121 123 setIcon(promptColIdx, QIcon()); 122 124 } 123 125 goto set_prompt; 124 - case P_COMMENT: 126 + case M_COMMENT: 125 127 setIcon(promptColIdx, QIcon()); 126 128 prompt = "*** " + prompt + " ***"; 129 + goto set_prompt; 130 + case M_CHOICE: 131 + setIcon(promptColIdx, QIcon()); 127 132 goto set_prompt; 128 133 default: 129 134 ;