sw/source/uibase/utlui/content.cxx |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

New commits:
commit 06e70fd83c656439ca4bcf6c79178a5e4d49e106
Author:     Jim Raykowski <[email protected]>
AuthorDate: Fri Nov 28 22:41:38 2025 -0900
Commit:     Xisco Fauli <[email protected]>
CommitDate: Fri Dec 12 11:41:06 2025 +0100

    SwNavigator Indexes: Use direct method to update
    
    Currently Indexes Update is done through UNO methods. This causes the
    tree entry in the Indexes list to become grayed out. This patch fixes
    the graying out by replacing the UNO method with the
    SwWrt::UpdateContentOf function.
    
    Change-Id: Ia1a9b28fd1934901c87a048b14a3613ef311ad8a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194808
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <[email protected]>
    (cherry picked from commit 3aba62cee832f57092737a5bafea879e9aa1158c)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195519
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index e24ee42d2dc1..8828abbccce4 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -6489,15 +6489,7 @@ void SwContentTree::EditEntry(const weld::TreeIter& 
rEntry, EditEntryMode nMode)
                 break;
                 case EditEntryMode::UPD_IDX:
                 {
-                    rtl::Reference< SwXTextDocument > xModel = 
m_pActiveShell->GetView().GetDocShell()->GetBaseModel();
-                    rtl::Reference< SwXDocumentIndexes> xIdxAcc = 
xModel->getSwDocumentIndexes();
-                    if(xIdxAcc.is() && 
xIdxAcc->hasByName(pBase->GetTOXName().toString()))
-                    {
-                        Any aIdx = 
xIdxAcc->getByName(pBase->GetTOXName().toString());
-                        Reference< XDocumentIndex> xIdx;
-                        if(aIdx >>= xIdx)
-                            xIdx->update();
-                    }
+                    m_pActiveShell->UpdateTableOf(*pBase);
                 }
                 break;
                 default: break;

Reply via email to