Skip to content

Commit

Permalink
[PATCH] qconf: hide empty list items
Browse files Browse the repository at this point in the history
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>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Oleg Verych <olecom@flower.upol.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Cyrill V. Gorcunov authored and Linus Torvalds committed Feb 14, 2007
1 parent 1f85712 commit ed8b4d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/kconfig/qconf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,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
Expand Down

0 comments on commit ed8b4d4

Please sign in to comment.