LKML Archive on
help / color / mirror / Atom feed
* [PATCH] qconf: hide empty list items
@ 2007-02-10 11:00 Cyrill V. Gorcunov
  0 siblings, 0 replies; only message in thread
From: Cyrill V. Gorcunov @ 2007-02-10 11:00 UTC (permalink / raw)
  To: Roman Zippel; +Cc: linux-kernel-list, Cyrill V. Gorcunov

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.

Signed-off-by: Cyrill V. Gorcunov <>


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

 scripts/kconfig/ |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/kconfig/ b/scripts/kconfig/
index c0ae0a7..d254e37 100644
--- a/scripts/kconfig/
+++ b/scripts/kconfig/
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-10 11:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-10 11:00 [PATCH] qconf: hide empty list items Cyrill V. Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).