[Libreoffice-commits] core.git: sfx2/source

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Wed Nov 20 21:51:05 UTC 2019


 sfx2/source/dialog/templdlg.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 1906f3f2f7c39ea9a3e04f1081dbfc24a1de3212
Author:     Jim Raykowski <raykowj at gmail..com>
AuthorDate: Tue Nov 19 15:33:17 2019 -0900
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Wed Nov 20 22:49:34 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 <raykowj at gmail.com>

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


More information about the Libreoffice-commits mailing list