sfx2/source/control/unoctitm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 04375f2a31cc6c233a015215f06682462b30425f
Author:     Pranam Lashkari <[email protected]>
AuthorDate: Tue Nov 19 00:04:30 2024 +0530
Commit:     Caolán McNamara <[email protected]>
CommitDate: Mon Nov 18 20:25:47 2024 +0100

    LOK: use boolean or disabled payload for EditDoc
    
    it is more appropriate state variable for this particular command,
    as in many cases its disabled and that can not be treated as false
    as document still maybe editable
    
    Change-Id: Ib19a0cc087518a18bf295abd08b93815606af1fa
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176736
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index daac2ba3ac6c..c9bdacbf8739 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1152,7 +1152,6 @@ constexpr auto handlers = 
frozen::make_unordered_map<std::u16string_view, Payloa
     { u"NormalMultiPaneGUI", IsActivePayload },
     { u"NotesMode", IsActivePayload },
     { u"SlideMasterPage", IsActivePayload },
-    { u"EditDoc", IsActivePayload },
 
     { u"CharFontName", FontNamePayload },
 
@@ -1351,6 +1350,7 @@ constexpr auto handlers = 
frozen::make_unordered_map<std::u16string_view, Payloa
     { u"ToggleMergeCells", BooleanOrDisabledPayload },
     { u"SheetRightToLeft", BooleanOrDisabledPayload },
     { u"ToggleSheetGrid", BooleanOrDisabledPayload },
+    { u"EditDoc", BooleanOrDisabledPayload },
 
     { u"Position", PointPayload },
     { u"FreezePanesColumn", PointPayload },

Reply via email to