loleaflet/src/control/Control.JSDialogBuilder.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 564b36f01ae271357e79754269f3d30f475fbc79
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Thu Oct 24 15:56:15 2019 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Thu Oct 24 15:56:15 2019 +0200

    jsdialogs: selected entry also based on text
    
    Change-Id: Ic4dcd0ba99c3b7303222f4a5eabae0358187a526

diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js 
b/loleaflet/src/control/Control.JSDialogBuilder.js
index 7ac9f9a41..bf5a5c853 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -560,7 +560,8 @@ L.Control.JSDialogBuilder = L.Control.extend({
                var entries = [];
                for (var index in data.entries) {
                        var style = 'ui-combobox-text';
-                       if (index == data.selectedEntries[0]) {
+                       if (index == data.selectedEntries[0]
+                               || data.entries[index] == title) {
                                style += ' selected';
                        }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to