mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 09:15:50 +00:00
branch: Fix disabling of submenus that have only disabled items.
see: http://www.lyx.org/trac/changeset/28026 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29025 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7fd4a01683
commit
4b76c8267f
@ -1164,6 +1164,7 @@ void Menu::Impl::populate(QMenu & qMenu, MenuDefinition const & menu)
|
||||
else if (m->kind() == MenuItem::Submenu) {
|
||||
QMenu * subMenu = qMenu.addMenu(label(*m));
|
||||
populate(*subMenu, m->submenu());
|
||||
subMenu->setEnabled(m->status().enabled());
|
||||
} else {
|
||||
// we have a MenuItem::Command
|
||||
qMenu.addAction(new Action(view, QIcon(), label(*m),
|
||||
|
Loading…
Reference in New Issue
Block a user