sw/source/uibase/utlui/content.cxx             |   10 +++++-----
 sw/uiconfig/swriter/ui/navigatorcontextmenu.ui |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit a4b2d74bc30fea3eba101106f4686d881f8aa9ba
Author:     Jim Raykowski <[email protected]>
AuthorDate: Fri Nov 28 14:38:57 2025 -0900
Commit:     Jim Raykowski <[email protected]>
CommitDate: Wed Jan 28 13:04:32 2026 +0100

    tdf#169800 SwNavigator: Indexes context menu item name change
    
    Changes the name of the Indexes context menu checkbox item "Read-only"
    to "Protected against manual changes" to match the name in the "Table
    of Contents, Index, or Bibliography" dialog.
    
    Change-Id: I8b80a8fc8a6da62ba0370be75a1a65fdf57fbe68
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194806
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <[email protected]>

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index ff58a5f2d0bb..6363da4d3c45 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1956,7 +1956,7 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, 
rCEvt, bool)
     bool bRemovePostItEntries = true;
     bool bRemoveIndexEntry = true;
     bool bRemoveUpdateIndexEntry = true;
-    bool bRemoveReadonlyIndexEntry = true;
+    bool bRemoveProtectedAgainstManualChangesIndexEntry = true;
     bool bRemoveCopyEntry = true;
     bool bRemoveEditEntry = true;
     bool bRemoveUnprotectEntry = true;
@@ -2214,7 +2214,7 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, 
rCEvt, bool)
                     {
                         bRemoveIndexEntry = false;
                         bRemoveUpdateIndexEntry = false;
-                        bRemoveReadonlyIndexEntry = false;
+                        bRemoveProtectedAgainstManualChangesIndexEntry = false;
                         const SwTOXBase* pBase = pCnt->GetTOXBase();
                         xPop->set_active(OUString::number(405/*Readonly*/),
                                          
SwEditShell::IsTOXBaseReadonly(*pBase));
@@ -2499,7 +2499,7 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, 
rCEvt, bool)
     if (bRemoveUpdateIndexEntry)
         xPop->remove(OUString::number(402));
 
-    if (bRemoveReadonlyIndexEntry)
+    if (bRemoveProtectedAgainstManualChangesIndexEntry)
         xPop->remove(OUString::number(405));
 
     if (bRemoveUnprotectEntry)
@@ -2518,8 +2518,8 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, 
rCEvt, bool)
     if (bRemoveGotoEntry && bRemoveCopyEntry && bRemoveSelectEntry && 
bRemoveDeleteEntry
         && bRemoveMakeFootnotesEndnotesViceVersaEntry && bRemoveChapterEntries
         && bRemovePostItEntries && bRemoveRenameEntry && bRemoveIndexEntry
-        && bRemoveUpdateIndexEntry && bRemoveReadonlyIndexEntry && 
bRemoveUnprotectEntry
-        && bRemoveEditEntry && bRemoveSortOutlineAlphabeticallyInDocument)
+        && bRemoveUpdateIndexEntry && 
bRemoveProtectedAgainstManualChangesIndexEntry
+        && bRemoveUnprotectEntry && bRemoveEditEntry && 
bRemoveSortOutlineAlphabeticallyInDocument)
         xPop->remove(u"separator2"_ustr);
 
     if (!bOutline)
diff --git a/sw/uiconfig/swriter/ui/navigatorcontextmenu.ui 
b/sw/uiconfig/swriter/ui/navigatorcontextmenu.ui
index 30d3ba84b83f..a15cb13e0852 100644
--- a/sw/uiconfig/swriter/ui/navigatorcontextmenu.ui
+++ b/sw/uiconfig/swriter/ui/navigatorcontextmenu.ui
@@ -142,7 +142,7 @@
       <object class="GtkCheckMenuItem" id="405">
         <property name="visible">True</property>
         <property name="can-focus">False</property>
-        <property name="label" translatable="yes" 
context="navigatorcontextmenu|STR_READONLY_IDX">Read-_only</property>
+        <property name="label" translatable="yes" 
context="navigatorcontextmenu|STR_READONLY_IDX">Protected against manual 
changes</property>
         <property name="use-underline">True</property>
       </object>
     </child>

Reply via email to