diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2019-09-05 09:36:42 +0200 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2019-09-12 23:30:01 +0200 |
commit | 0701a1838280d4fa9c54ca39f1a5297fe4857a16 (patch) | |
tree | d512d8335b4f3963983dc89c4b7c28130729e93a | |
parent | 8a231fc4114d435f92cfda36aa2e5e38ecef0ada (diff) |
Resolves tdf#125531 - Empty CMIS properties dialog
CMIS tab hidden when not isCmisDocument(), ie. no elements
Change-Id: Ib682aa62ae5035a9ecb107fec709d243764346d9
Reviewed-on: https://gerrit.libreoffice.org/78625
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 86d39b6cf4cf..2b49b18bfc3b 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1128,6 +1128,8 @@ SfxDocumentInfoDialog::SfxDocumentInfoDialog(weld::Window* pParent, const SfxIte AddTabPage("description", SfxDocumentDescPage::Create, nullptr); AddTabPage("customprops", SfxCustomPropertiesPage::Create, nullptr); AddTabPage("cmisprops", SfxCmisPropertiesPage::Create, nullptr); + if (!rInfoItem.isCmisDocument()) + m_xTabCtrl->get_page("cmisprops")->hide(); AddTabPage("security", SfxSecurityPage::Create, nullptr); } @@ -2248,6 +2250,7 @@ SfxCmisPropertiesPage::SfxCmisPropertiesPage(TabPageParent pParent, const SfxIte : SfxTabPage(pParent, "sfx/ui/cmisinfopage.ui", "CmisInfoPage", &rItemSet) , m_xPropertiesCtrl(new CmisPropertiesControl(*m_xBuilder)) { + } void SfxCmisPropertiesPage::dispose() |