Skip to contentSkip to conversation

qconf: hide empty list items

PATCH New Cyrill V. Gorcunov 1 participant 1 message Feb 10, 2007 Kconfig

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qconf: hide empty list items

This patch fixes showing empty config list items if "Option/Show All Options" is turned on. For example empty items appears on list of 'Block Layer' menu.

---

Roman, this patch is temporary solution only. The problem is growing from the code that creates menu items I guess.

 scripts/kconfig/qconf.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
scripts/kconfig/qconf.cc +2 -0
index c0ae0a7..d254e37 100644
@@ -605,6 +605,8 @@ void ConfigList::updateMenuList(P* parent, struct menu* menu)
 
 		visible = menu_is_visible(child);
 		if (showAll || visible) {
+			if (!child->sym && !child->list && !child->prompt)
+				continue;
 			if (!item || item->menu != child)
 				item = new ConfigItem(parent, last, child, visible);
 			else