diff options
author | Cyrill V. Gorcunov <gorcunov@gmail.com> | 2007-02-14 03:33:00 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:09:52 -0500 |
commit | f253f00003c3fed0355cf49482f24c56bc5dbea6 (patch) | |
tree | a61cfccf873865856d0eb92f32bf0c5bbaeb4a48 /scripts | |
parent | 786fb18d015cc5f34284d426e055ddd7a3dbb53b (diff) |
[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 'scripts')
-rw-r--r-- | scripts/kconfig/qconf.cc | 5 |
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) | |||
1472 | void ConfigMainWindow::changeMenu(struct menu *menu) | 1472 | void ConfigMainWindow::changeMenu(struct menu *menu) |
1473 | { | 1473 | { |
1474 | configList->setRootMenu(menu); | 1474 | configList->setRootMenu(menu); |
1475 | backAction->setEnabled(TRUE); | 1475 | if (configList->rootEntry->parent == &rootmenu) |
1476 | backAction->setEnabled(FALSE); | ||
1477 | else | ||
1478 | backAction->setEnabled(TRUE); | ||
1476 | } | 1479 | } |
1477 | 1480 | ||
1478 | void ConfigMainWindow::setMenuLink(struct menu *menu) | 1481 | void ConfigMainWindow::setMenuLink(struct menu *menu) |