diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-09 16:33:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-09 16:34:17 +0000 |
commit | 5f8b6166115cd92bed202d3d8f2ce2d3f74256d4 (patch) | |
tree | 8065f3f1c4a4bb47c3176dcc365cbe043dc157b4 /sfx2 | |
parent | c697ae306cd4eaa8144ed93fc908e50d5934e249 (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
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 8b83e6798313..75df0888b3eb 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -2141,6 +2141,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; } |