From: Cyrill V. Gorcunov Date: Wed, 14 Feb 2007 08:33:00 +0000 (-0800) Subject: [PATCH] qconf: Back button behaviour normalization X-Git-Tag: v2.6.21-rc1~265 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f253f00003c3fed0355cf49482f24c56bc5dbea6;p=linux-2.6 [PATCH] qconf: Back button behaviour normalization Do "Back" button behaviour normalization so it is enabled starting from second-level menu only. Signed-off-by: Cyrill V. Gorcunov Cc: Roman Zippel Cc: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 99124458db..0981d2a2f3 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -1472,7 +1472,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)