diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2022-08-23 11:29:46 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-08-23 15:37:49 +0200 |
commit | c5d255b1f0bea5fec520c27b5141bce4b41cb3d6 (patch) | |
tree | 869b14830a1910fe0f4bcbd90f83581d6b04c80a | |
parent | b99c74804b254d32f582d2fd9e0c67161ebdf909 (diff) |
sw: Navigator: Protect Bookmarks should allow editing, part 2
Nowadays the Navigator is created once on document open, so enabling
the protection from the menu will be ignored in SwContentType ctor,
while setting loaded from file will take effect.
Change-Id: If70b49044a712ebb3729a800836501db76fc490d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138714
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 7922655252fa..4599bca9894b 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -354,7 +354,7 @@ SwContentType::SwContentType(SwWrtShell* pShell, ContentTypeId nType, sal_uInt8 { const bool bProtectedBM = m_pWrtShell->getIDocumentSettingAccess().get( DocumentSettingId::PROTECT_BOOKMARKS); - m_bEdit = !bProtectedBM; + m_bEdit = true; m_bDelete = !bProtectedBM; } break; |