From c15b872784c8fc0f5e5e813d38c7722f034034d2 Mon Sep 17 00:00:00 2001 From: Gökay Şatır Date: Fri, 8 Mar 2024 13:51:01 +0300 Subject: Allow enabling saving when comment edit is allowed in readonly. Change-Id: I88d535a5b23fb6d5de8e72eec61bdf3550bc757d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165334 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- desktop/source/lib/init.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'desktop/source/lib') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 6eba39cc32f3..99c533c20598 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5079,6 +5079,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) -- cgit