summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorGökay Şatır <gokaysatir@gmail.com>2024-03-08 13:51:01 +0300
committerMichael Meeks <michael.meeks@collabora.com>2024-03-08 14:55:10 +0100
commitb44a1fdd7e0f5f7be02665407ebbc15b977d2f7b (patch)
treef68d13135e4e78503b6c273c531b519a6478c031 /desktop
parent963ec97d3325cfb2d6c001100b1941b243fccdb3 (diff)
Allow enabling saving when comment edit is allowed in readonly.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com> Change-Id: I88d535a5b23fb6d5de8e72eec61bdf3550bc757d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164570 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index c98362b6ba63..739ba2a42021 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5124,6 +5124,9 @@ static bool isCommandAllowed(OUString& command) {
return true;
else
{
+ if (command == u".uno:Save"_ustr && SfxViewShell::Current() && SfxViewShell::Current()->IsAllowChangeComments())
+ return true;
+
for (size_t i = 0; i < std::size(nonAllowedList); i++)
{
if (nonAllowedList[i] == command)