sw/source/uibase/utlui/content.cxx |    1 +
 sw/source/uibase/utlui/navipi.cxx  |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit c69b16a0f859d71a101e2c138887e7975ec71e2a
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Mon Oct 14 08:47:17 2024 -0800
Commit:     Jim Raykowski <rayk...@gmail.com>
CommitDate: Mon Oct 14 22:34:17 2024 +0200

    Resolves tdf#163411 NAVIGATOR: In Content Navigation View buttons to
    
    move heading disappear after first use
    
    Change-Id: I816ff3a7e5016d6316b63c49e5620617fe5a068f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174907
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <rayk...@gmail.com>

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index 5b7416b9bbcf..1694f0e0e75b 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -4104,6 +4104,7 @@ void SwContentTree::ExecCommand(std::u16string_view rCmd, 
bool bOutlineWithChild
                     return false;
                 });
             }
+            UpdateContentFunctionsToolbar();
         }
         else
         {
diff --git a/sw/source/uibase/utlui/navipi.cxx 
b/sw/source/uibase/utlui/navipi.cxx
index 8fcb96144228..f11c31fbe531 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -679,6 +679,7 @@ void SwNavigationPI::UpdateContentFunctionsToolbar()
         eContentTypeId = pContentType->GetType();
         if (eContentTypeId == ContentTypeId::OUTLINE)
         {
+            // todo: make buttons sensitive to movability (think position and 
protection)
             m_xHeadingsContentFunctionsToolbar->show();
         }
         else if 
(m_xContentTree->IsSelectedEntryCurrentDocCursorPosition(*xEntry))

Reply via email to