Fix disabling of submenus that have only disabled items.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28026 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-01-07 17:54:29 +00:00
parent 72dc5352dd
commit a16fabfb26

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