summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/qconf.cc
diff options
context:
space:
mode:
authorCyrill V. Gorcunov <gorcunov@gmail.com>2007-02-14 09:33:00 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-14 17:09:52 +0100
commitf253f00003c3fed0355cf49482f24c56bc5dbea6 (patch)
treea61cfccf873865856d0eb92f32bf0c5bbaeb4a48 /scripts/kconfig/qconf.cc
parent[PATCH] qconf: fix showing help info on failed search (diff)
downloadlinux-f253f00003c3fed0355cf49482f24c56bc5dbea6.tar.xz
linux-f253f00003c3fed0355cf49482f24c56bc5dbea6.zip
[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 <gorcunov@gmail.com> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--scripts/kconfig/qconf.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index 99124458dbd5..0981d2a2f363 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)