]> git.hungrycats.org Git - linux/commitdiff
[PATCH] qconf fix
authorRoman Zippel <zippel@linux-m68k.org>
Tue, 6 Jan 2004 11:46:12 +0000 (03:46 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 6 Jan 2004 11:46:12 +0000 (03:46 -0800)
Sometimes a menuconfig item is shown twice, so hide the other item.

scripts/kconfig/qconf.cc

index 9ae9c321662fa1a5c07e7497564bc380bc70baef..182934e1cc92a538b204be14cde2438aa84185bc 100644 (file)
@@ -409,7 +409,7 @@ void ConfigList::updateList(ConfigItem* item)
                        item = new ConfigItem(this, 0, true);
                last = item;
        }
-       if ((mode == singleMode || mode == symbolMode) &&
+       if ((mode == singleMode || (mode == symbolMode && !(rootEntry->flags & MENU_ROOT))) &&
            rootEntry->sym && rootEntry->prompt) {
                item = last ? last->nextSibling() : firstChild();
                if (!item)