summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2022-08-23 11:29:46 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2022-08-23 15:37:49 +0200
commitc5d255b1f0bea5fec520c27b5141bce4b41cb3d6 (patch)
tree869b14830a1910fe0f4bcbd90f83581d6b04c80a
parentb99c74804b254d32f582d2fd9e0c67161ebdf909 (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.cxx2
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;