LKML Archive on lore.kernel.org
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 <gorcunov@gmail.com>

---

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(-)

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

^ 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).