loleaflet/src/control/Control.Menubar.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3640adeae109119b4013035b2a1b27935693b0b5
Author:     Jan Holesovsky <ke...@collabora.com>
AuthorDate: Tue Mar 12 17:04:50 2019 +0100
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Tue Mar 12 21:23:42 2019 +0100

    Send the UI_FileVersions only when the revision history is enabled.
    
    Change-Id: I03a1a27c6a09ff34a6ff828b4903785ae342abc8
    Reviewed-on: https://gerrit.libreoffice.org/69112
    Reviewed-by: Ashod Nakashian <ashnak...@gmail.com>
    Tested-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/loleaflet/src/control/Control.Menubar.js 
b/loleaflet/src/control/Control.Menubar.js
index f97772ca8..ad5388b92 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -769,7 +769,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

Reply via email to