lkml.org 
[lkml]   [2015]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 28/39] Add current selection check.
Date
From: Boris Barbulovski <bbarbulovski@gmail.com>

Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>
---
scripts/kconfig/qconf.cc | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index f54f19f..6de8589 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -399,6 +399,9 @@ void ConfigList::updateSelection(void)
struct menu *menu;
enum prop_type type;

+ if (selectedItems().count() == 0)
+ return;
+
ConfigItem* item = (ConfigItem*)selectedItems().first();
if (!item)
return;
@@ -1605,6 +1608,10 @@ void ConfigMainWindow::goBack(void)
configList->setParentMenu();
if (configList->rootEntry == &rootmenu)
backAction->setEnabled(false);
+
+ if (menuList->selectedItems().count() == 0)
+ return;
+
item = (ConfigItem*)menuList->selectedItems().first();
while (item) {
if (item->menu == configList->rootEntry) {
--
2.1.4


\
 
 \ /
  Last update: 2015-09-22 21:01    [W:0.165 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site