]> git.itanic.dy.fi Git - linux-stable/commit
kconfig: qconf: re-implement setSelected()
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 30 Jun 2020 06:26:38 +0000 (08:26 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 1 Jul 2020 14:59:30 +0000 (23:59 +0900)
commitb06c3ec3bd184e8bbd3e37d53a3d27c4ab9ccd09
tree45c8dd4c51def6ef7293a043fa45b4448d3fa4cf
parentc4f7398bee9c49bd79930d4a856fb6291d20cde3
kconfig: qconf: re-implement setSelected()

The default implementation for setSelected() at QTreeWidgetItem
allows multiple items to be selected.

Well, this should never be possible for the configItem lists.

So, implement a function that will automatically clean any
previous selection. This simplifies the logic somewhat, while
making the selection logic to be applied atomically, avoiding
future issues on that.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/qconf.cc
scripts/kconfig/qconf.h