diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-09 16:33:28 +0000 |
---|---|---|
committer | Heiko Tietze <tietze.heiko@googlemail.com> | 2017-02-11 10:26:36 +0000 |
commit | a60a6f514c59e4a7e7fee239823d2e932c499bf6 (patch) | |
tree | f41910207dcada40c32a60100c9a6577f1a76d5f /sfx2 | |
parent | 076aea2fc77ab37172797ecec5d70f3e9ee8b38f (diff) |
Resolves: tdf#101648 disable new/modify of table styles
cause there is no ui for it at the moment, so it crashes
Change-Id: I703449ff69f93b6385d3bf9225abe81682d3b893
(cherry picked from commit 5f8b6166115cd92bed202d3d8f2ce2d3f74256d4)
Reviewed-on: https://gerrit.libreoffice.org/34099
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index bb25c2b602dd..7ffe615edaea 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -2147,6 +2147,13 @@ VclPtr<PopupMenu> SfxCommonTemplateDialog_Impl::CreateContextMenu() pMenu->EnableItem( ID_HIDE, bCanHide ); pMenu->EnableItem( ID_SHOW, bCanShow ); + const SfxStyleFamilyItem* pItem = GetFamilyItem_Impl(); + if (pItem && pItem->GetFamily() == SfxStyleFamily::Table) //tdf#101648, no ui for this yet + { + pMenu->EnableItem(ID_EDIT, false); + pMenu->EnableItem(ID_NEW, false); + } + return pMenu; } |