loleaflet/src/control/Control.AlertDialog.js |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

New commits:
commit 2420c8bdbea699f6401fd66ae09dea3032e1711e
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Wed Jun 5 21:08:36 2019 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Mon Oct 28 20:01:24 2019 +0100

    Don't show edit link button in Impress
    
    In impress it is needed to select full content of a
    link to be able to edit it using hyperlink dialog.
    Hide edit button for now to not show empty dialog.
    
    Change-Id: If782bef66cbdaedc414dcf65df7c484be4343a5e

diff --git a/loleaflet/src/control/Control.AlertDialog.js 
b/loleaflet/src/control/Control.AlertDialog.js
index d0f72e988..a1665eb08 100644
--- a/loleaflet/src/control/Control.AlertDialog.js
+++ b/loleaflet/src/control/Control.AlertDialog.js
@@ -49,15 +49,17 @@ L.Control.AlertDialog = L.Control.extend({
                                });
                        }
 
-                       buttonsList.push({
-                               text: _('Edit'),
-                               type: 'button',
-                               className: 'vex-dialog-button-secondary',
-                               click: function editClick () {
-                                       vex.closeAll();
-                                       e.map.showHyperlinkDialog();
-                               }
-                       });
+                       if (this._map.getDocType() != 'presentation') {
+                               buttonsList.push({
+                                       text: _('Edit'),
+                                       type: 'button',
+                                       className: 
'vex-dialog-button-secondary',
+                                       click: function editClick () {
+                                               vex.closeAll();
+                                               e.map.showHyperlinkDialog();
+                                       }
+                               });
+                       }
 
                        vex.dialog.open({
                                message: messageText,
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to