summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2019-09-05 09:36:42 +0200
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2019-09-12 23:30:01 +0200
commit0701a1838280d4fa9c54ca39f1a5297fe4857a16 (patch)
treed512d8335b4f3963983dc89c4b7c28130729e93a /sfx2
parent8a231fc4114d435f92cfda36aa2e5e38ecef0ada (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>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/dinfdlg.cxx3
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()