summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBoris Barbulovski <bbarbulovski@gmail.com>2015-09-22 11:36:36 -0700
committerMichal Marek <mmarek@suse.com>2015-10-14 15:00:25 +0200
commit5df9da9df2071c7c18245b4462e7d65d28df4281 (patch)
treed69bda9137fa38660cf188807614956481198def /scripts
parent76d53cbbae3fe29bfa92177e4bf3377fab176ec6 (diff)
downloadlinux-5df9da9df2071c7c18245b4462e7d65d28df4281.tar.gz
linux-5df9da9df2071c7c18245b4462e7d65d28df4281.tar.bz2
linux-5df9da9df2071c7c18245b4462e7d65d28df4281.zip
Port xconfig to Qt5 - on Back clicked, deselect old item.
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Thiago Macieira <thiago.macieira@intel.com> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/qconf.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index ca22676da4a9..97631e9a61d8 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -1618,14 +1618,16 @@ void ConfigMainWindow::listFocusChanged(void)
void ConfigMainWindow::goBack(void)
{
- ConfigItem* item;
+ ConfigItem* item, *oldSelection;
configList->setParentMenu();
if (configList->rootEntry == &rootmenu)
backAction->setEnabled(false);
item = (ConfigItem*)menuList->selectedItems().first();
+ oldSelection = item;
while (item) {
if (item->menu == configList->rootEntry) {
+ oldSelection->setSelected(false);
item->setSelected(true);
break;
}