mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[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>
This commit is contained in:
parent
786fb18d01
commit
f253f00003
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue