sw/source/ui/dialog/uiregionsw.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
New commits: commit 5568e3f3451a313e4beef357e98e7798c311d715 Author: Szymon Kłos <[email protected]> AuthorDate: Mon May 1 16:34:07 2023 +0200 Commit: Andras Timar <[email protected]> CommitDate: Wed May 17 18:53:57 2023 +0200 lok: Hide file name label this is followup for: commit 80c423520baa94cd3546e02cb383946a7d448ce9 lok: Hide file linking in section Change-Id: I28f965766758d87f457e8471bf88b5db886fbba3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151256 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Andras Timar <[email protected]> diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index bcc821a9973b..e5cb5c1945d2 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -400,15 +400,11 @@ SwEditRegionDlg::SwEditRegionDlg(weld::Window* pParent, SwWrtShell& rWrtSh) if(comphelper::LibreOfficeKit::isActive()) { - m_xBuilder->weld_label("label8")->hide(); // Link - m_xFileCB->hide(); m_xDDECB->hide(); m_xDDECommandFT->hide(); m_xFileNameFT->hide(); m_xFileNameED->hide(); m_xFilePB->hide(); - m_xSubRegionFT->hide(); - m_xSubRegionED->hide(); } } @@ -1172,7 +1168,8 @@ IMPL_LINK(SwEditRegionDlg, DDEHdl, weld::Toggleable&, rButton, void) { m_xDDECommandFT->hide(); m_xFileNameFT->set_sensitive(bFile); - m_xFileNameFT->show(); + if(!comphelper::LibreOfficeKit::isActive()) + m_xFileNameFT->show(); m_xSubRegionED->show(); m_xSubRegionFT->show(); m_xSubRegionED->set_sensitive(bFile); @@ -1741,7 +1738,8 @@ IMPL_LINK( SwInsertSectionTabPage, DDEHdl, weld::Toggleable&, rButton, void ) { m_xDDECommandFT->hide(); m_xFileNameFT->set_sensitive(bFile); - m_xFileNameFT->show(); + if(!comphelper::LibreOfficeKit::isActive()) + m_xFileNameFT->show(); m_xSubRegionFT->show(); m_xSubRegionED->show(); m_xSubRegionED->set_sensitive(bFile);
