Skip to content

Commit

Permalink
kconfig: qconf: don't show goback button on splitMode
Browse files Browse the repository at this point in the history
the goback button does nothing on splitMode. So, why display
it?

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
  • Loading branch information
Mauro Carvalho Chehab authored and Masahiro Yamada committed Jul 1, 2020
1 parent af737b4 commit cc1c08e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/kconfig/qconf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,10 @@ void ConfigList::updateList(ConfigItem* item)
if (rootEntry != &rootmenu && (mode == singleMode ||
(mode == symbolMode && rootEntry->parent != &rootmenu))) {
item = (ConfigItem *)topLevelItem(0);
if (!item)
if (!item && mode != symbolMode) {
item = new ConfigItem(this, 0, true);
last = item;
last = item;
}
}
if ((mode == singleMode || (mode == symbolMode && !(rootEntry->flags & MENU_ROOT))) &&
rootEntry->sym && rootEntry->prompt) {
Expand Down

0 comments on commit cc1c08e

Please sign in to comment.