sw/source/ui/dialog/uiregionsw.cxx |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

New commits:
commit 04fdafcd04c4482464cba545dbd6104ff11166bd
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Mon May 1 16:34:07 2023 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Mon May 8 12:23:01 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/+/151232
    Tested-by: Szymon Kłos <szymon.k...@collabora.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/sw/source/ui/dialog/uiregionsw.cxx 
b/sw/source/ui/dialog/uiregionsw.cxx
index 37a7ab66fa9c..f3560e8f2b67 100644
--- a/sw/source/ui/dialog/uiregionsw.cxx
+++ b/sw/source/ui/dialog/uiregionsw.cxx
@@ -418,15 +418,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();
     }
 }
 
@@ -1188,7 +1184,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);
@@ -1755,7 +1752,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);

Reply via email to