]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: qconf: do not limit the pop-up menu to the first row
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 7 Aug 2020 09:19:08 +0000 (18:19 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 14 Aug 2020 04:47:07 +0000 (13:47 +0900)
commit8587aaffb26d2dae88cc67436c8639c62c13e40e
treebac27fa8eb240dc0efa685f463772e8d155ca85a
parent26a6f4c3ff6cb6bfbcb7e4c9969a504425837134
kconfig: qconf: do not limit the pop-up menu to the first row

If you right-click the first row in the option tree, the pop-up menu
shows up, but if you right-click the second row or below, the event
is ignored due to the following check:

  if (e->y() <= header()->geometry().bottom()) {

Perhaps, the intention was to show the pop-menu only when the tree
header was right-clicked, but this handler is not called in that case.

Since the origin of e->y() starts from the bottom of the header,
this check is odd.

Going forward, you can right-click anywhere in the tree to get the
pop-up menu.

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