aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/kconfig/qconf.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index 73ce56a76271..91b7e6fbc364 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -400,6 +400,9 @@ void ConfigList::updateSelection(void)
400 struct menu *menu; 400 struct menu *menu;
401 enum prop_type type; 401 enum prop_type type;
402 402
403 if (selectedItems().count() == 0)
404 return;
405
403 ConfigItem* item = (ConfigItem*)selectedItems().first(); 406 ConfigItem* item = (ConfigItem*)selectedItems().first();
404 if (!item) 407 if (!item)
405 return; 408 return;
@@ -1624,6 +1627,10 @@ void ConfigMainWindow::goBack(void)
1624 configList->setParentMenu(); 1627 configList->setParentMenu();
1625 if (configList->rootEntry == &rootmenu) 1628 if (configList->rootEntry == &rootmenu)
1626 backAction->setEnabled(false); 1629 backAction->setEnabled(false);
1630
1631 if (menuList->selectedItems().count() == 0)
1632 return;
1633
1627 item = (ConfigItem*)menuList->selectedItems().first(); 1634 item = (ConfigItem*)menuList->selectedItems().first();
1628 oldSelection = item; 1635 oldSelection = item;
1629 while (item) { 1636 while (item) {