提交 f253f000 编写于 作者: C Cyrill V. Gorcunov 提交者: Linus Torvalds

[PATCH] qconf: Back button behaviour normalization

Do "Back" button behaviour normalization so it is enabled starting from
second-level menu only.
Signed-off-by: NCyrill V. Gorcunov <gorcunov@gmail.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 786fb18d
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册