loleaflet/src/control/Control.Menubar.js | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit d10ee489689bbfa412c5f3e6c09a0cc76cf7e5f7 Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Fri Aug 28 20:15:55 2020 +0530 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Sep 9 14:21:31 2020 +0200 leaflet: do not allow to add comments in read only mode comments are only allowed in read only mode in draw Change-Id: I0b7bc770c8c2b5117dfc31f515f28df67a7a3080 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101553 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index 7e4788534..bcd427865 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -1117,6 +1117,8 @@ L.Control.Menubar = L.Control.extend({ break; } } + if (id === 'insertcomment' && self._map.getDocType() !== 'drawing') + found = false; if (!found) { $(aItem).addClass('disabled'); } else { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits