loleaflet/src/control/Control.Menubar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e22dfdec5df5c88a4be6996e179dfe05f145a979 Author: Jan Holesovsky <ke...@collabora.com> AuthorDate: Tue Mar 12 17:04:50 2019 +0100 Commit: Jan Holesovsky <ke...@collabora.com> CommitDate: Wed Mar 13 15:17:28 2019 +0100 Send the UI_FileVersions only when the revision history is enabled. Change-Id: I03a1a27c6a09ff34a6ff828b4903785ae342abc8 Reviewed-on: https://gerrit.libreoffice.org/69113 Reviewed-by: Jan Holesovsky <ke...@collabora.com> Tested-by: Jan Holesovsky <ke...@collabora.com> diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index d645c4990..872f1d340 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -770,7 +770,7 @@ L.Control.Menubar = L.Control.extend({ this._map.showLOAboutDialog(); } else if (id === 'keyboard-shortcuts') { this._map.showLOKeyboardHelp(); - } else if (id === 'rev-history' || id === 'last-mod') { + } else if (revHistoryEnabled && (id === 'rev-history' || id === 'last-mod')) { // if we are being loaded inside an iframe, ask // our host to show revision history mode this._map.fire('postMessage', {msgId: 'rev-history', args: {Deprecated: true}}); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits