sfx2/source/dialog/templdlg.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit fd212d59d7cf9fb8c46bb73f4c21148b61c5c53e
Author: Jim Raykowski <[email protected]>
AuthorDate: Tue Nov 19 15:33:17 2019 -0900
Commit: Xisco FaulĂ <[email protected]>
CommitDate: Tue Nov 26 14:10:17 2019 +0100
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 <[email protected]>
(cherry picked from commit 1906f3f2f7c39ea9a3e04f1081dbfc24a1de3212)
Reviewed-on: https://gerrit.libreoffice.org/83365
Reviewed-by: Xisco FaulĂ <[email protected]>
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 4347d9894298..2bda9d438466 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -2168,6 +2168,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);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits