]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kconfig: gconf: Fix Back button behavior
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 16 Jul 2025 23:24:09 +0000 (08:24 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 26 Jul 2025 10:55:37 +0000 (19:55 +0900)
commit15a5ae3b0976d1190728044920cf6337a218ae62
tree125017fa33d18f2d51057f07023e73f7e0ab2d1d
parent6d4d44254e43157bb760aa16367a394c2ab299b8
kconfig: gconf: Fix Back button behavior

Clicking the Back button may navigate to a non-menu hierarchy level.

[Example]

  menu "menu1"

  config A
          bool "A"
          default y

  config B
          bool "B"
          depends on A
          default y

  menu "menu2"
          depends on B

  config C
          bool "C"
          default y

  endmenu

  endmenu

After being re-parented by menu_finalize(), the menu tree is structured
like follows:

  menu "menu1"
  \-- A
      \-- B
          \-- menu "menu2"
              \-- C

In Single view, visit "menu2" and click the Back button. It should go up
to "menu1" and show A, B and "menu2", but instead goes up to A and show
only B and "menu2". This is a bug in on_back_clicked().

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/gconf.c