sfx2/source/control/dispatch.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit adcfa0902b8641a50b11c9fb528bb971993d5f12
Author:     Jaume Pujantell <jaume.pujant...@collabora.com>
AuthorDate: Thu Jan 30 12:11:39 2025 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Fri Jan 31 14:46:34 2025 +0100

    lok: allow save on comment only mode
    
    Allow execution of .uno:Save command on comment only mode for all types
    of files, not only pdf.
    
    Change-Id: I35387d93d00d709d209d3ed1ba2d315bd20b67d5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180940
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index d506e6b56bff..288d755d45be 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -1543,6 +1543,7 @@ bool SfxDispatcher::IsCommandAllowedInLokReadOnlyViewMode 
(OUString commandName)
         u".uno:DeleteAnnotation"_ustr,
         u".uno:EditAnnotation"_ustr,
         u".uno:PromoteComment"_ustr,
+        u".uno:Save"_ustr,
     };
 
     if (std::find(std::begin(allowedList), std::end(allowedList), commandName) 
!= std::end(allowedList))

Reply via email to