mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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>
This commit is contained in:
parent
76d53cbbae
commit
5df9da9df2
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue