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:
Vincent van Ravesteijn 2009-04-02 20:07:08 +00:00
parent 7fd4a01683
commit 4b76c8267f

View File

@ -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),