[Libreoffice-commits] core.git: sfx2/source
Heiko Tietze (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 12 21:31:02 UTC 2019
sfx2/source/dialog/dinfdlg.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 0701a1838280d4fa9c54ca39f1a5297fe4857a16
Author: Heiko Tietze <tietze.heiko at gmail.com>
AuthorDate: Thu Sep 5 09:36:42 2019 +0200
Commit: Heiko Tietze <heiko.tietze at documentfoundation.org>
CommitDate: Thu Sep 12 23:30:01 2019 +0200
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 at documentfoundation.org>
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()
More information about the Libreoffice-commits
mailing list