tdf#128229 Disable Accept All & Reject All if redlines are password protected
Change-Id: If0a2781565b41aff1b502c293f89e2005b47cce8
Reviewed-on: https://gerrit.libreoffice.org/81265
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx
index a373ec9..d9b49fc 100644
--- a/sw/source/uibase/app/docsh.cxx
+++ b/sw/source/uibase/app/docsh.cxx
@@ -1140,7 +1140,8 @@ void SwDocShell::GetState(SfxItemSet& rSet)
case FN_REDLINE_ACCEPT_ALL:
case FN_REDLINE_REJECT_ALL:
{
if (GetDoc()->getIDocumentRedlineAccess().GetRedlineTable().empty())
if (GetDoc()->getIDocumentRedlineAccess().GetRedlineTable().empty() ||
HasChangeRecordProtection()) // tdf#128229 Disable Accept / Reject all if redlines are password protected
rSet.DisableItem(nWhich);
}
break;