Skip to contentSkip to conversation

qconf: Back button behaviour normalization

PATCH New Cyrill V. Gorcunov 1 participant 1 message Jan 13, 2007 Kconfig

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qconf: Back button behaviour normalization

This patch does "Back" button behaviour normalization so it is enabled starting from second-level menu only.

---

Roman, please check it... may be a better way does exist to do it. The diff is produced over pure Linux v2.6.20-rc5

 scripts/kconfig/qconf.cc |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
scripts/kconfig/qconf.cc +4 -1
index c0ae0a7..34f1faf 100644
@@ -1467,7 +1467,10 @@ void ConfigMainWindow::searchConfig(void)
 void ConfigMainWindow::changeMenu(struct menu *menu)
 {
 	configList->setRootMenu(menu);
-	backAction->setEnabled(TRUE);
+	if (configList->rootEntry->parent == &rootmenu)
+		backAction->setEnabled(FALSE);
+	else
+		backAction->setEnabled(TRUE);
 }
 
 void ConfigMainWindow::setMenuLink(struct menu *menu)