sw/source/uibase/utlui/content.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
New commits: commit 3aba62cee832f57092737a5bafea879e9aa1158c Author: Jim Raykowski <[email protected]> AuthorDate: Fri Nov 28 22:41:38 2025 -0900 Commit: Jim Raykowski <[email protected]> CommitDate: Thu Dec 11 22:58:39 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]> diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index bf22a16bb209..36d6a3711595 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -6499,15 +6499,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;
