summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail..com>2019-11-19 15:33:17 -0900
committerJim Raykowski <raykowj@gmail.com>2019-11-20 22:49:34 +0100
commit1906f3f2f7c39ea9a3e04f1081dbfc24a1de3212 (patch)
tree262716179be20c2a5ab3224b38a7f917980a9040
parentf2c402e6747f23bb289d4ebd4c6ef8ff80067348 (diff)
tdf#128557 Show disabled menu items in style lists context menu
At present this doesn't work with gtk3 backend. Works with X11, tested by using SAL_USE_VCLPLUGIN=gen. I suspect it also works with kf5. Change-Id: I14b82bc7a6f25a4c88d547290d847217aa1b0de2 Reviewed-on: https://gerrit.libreoffice.org/83252 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
-rw-r--r--sfx2/source/dialog/templdlg.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index b4c8f4393e8d..937c241008d9 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -2129,6 +2129,7 @@ VclPtr<PopupMenu> const & SfxCommonTemplateDialog_Impl::CreateContextMenu()
mxMenu.disposeAndClear();
mxBuilder.reset(new VclBuilder(nullptr, VclBuilderContainer::getUIRootDir(), "sfx/ui/stylecontextmenu.ui", ""));
mxMenu.set(mxBuilder->get_menu("menu"));
+ mxMenu->SetMenuFlags(MenuFlags::AlwaysShowDisabledEntries);
mxMenu->SetSelectHdl( LINK( this, SfxCommonTemplateDialog_Impl, MenuSelectHdl ) );
mxMenu->EnableItem(mxMenu->GetItemId("edit"), bCanEdit);
mxMenu->EnableItem(mxMenu->GetItemId("delete"), bCanDel);