[Libreoffice-commits] online.git: loleaflet/src

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Sat Sep 21 07:37:35 UTC 2019


 loleaflet/src/control/Control.AlertDialog.js |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit fbed7bf1ae24550a4aa9923dee9726887879c425
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Mon Jun 17 16:59:25 2019 +0100
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Sat Sep 21 09:37:03 2019 +0200

    Don't keep erronous dialogID around afterClose.
    
    Avoids focus related exception in the map.
    
    Change-Id: I980b037b1a52b270d1203e0688f2a645c562ff0b

diff --git a/loleaflet/src/control/Control.AlertDialog.js b/loleaflet/src/control/Control.AlertDialog.js
index 1e1267649..82c050948 100644
--- a/loleaflet/src/control/Control.AlertDialog.js
+++ b/loleaflet/src/control/Control.AlertDialog.js
@@ -65,6 +65,7 @@ L.Control.AlertDialog = L.Control.extend({
 				buttons: buttonsList,
 				callback: function() {},
 				afterClose: function () {
+					vex.dialogID = -1;
 					e.map.focus();
 					e.map.enable(true);
 				}


More information about the Libreoffice-commits mailing list