From 4b76c8267f36777037c9217a20f61bbb30399519 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Thu, 2 Apr 2009 20:07:08 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/Menus.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index eec2c7fbba..cee15467f0 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -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),