[Libreoffice-commits] online.git: Branch 'distro/cib/libreoffice-6-2' - 2 commits - loleaflet/src tools/Config.cpp

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Mar 6 08:45:43 UTC 2019


 loleaflet/src/map/handler/Map.WOPI.js |    3 +++
 tools/Config.cpp                      |    3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 7446ba2d68e0a7222f17c2f157c9f7c51115d3ba
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Wed Nov 28 16:38:25 2018 +0100
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Wed Mar 6 09:44:55 2019 +0100

    Display image url for buttons inserted with postMessage 'Insert_Button'
    
    There was no <style> element in the <head>.
    So we need to create it when it's not there.
    
    Change-Id: Id0202b194e1438bd96401851d35e1f1630a78d8e
    (cherry picked from commit a9008c844dcd13220a89e259af484f1ea1573583)
    Reviewed-on: https://gerrit.libreoffice.org/68793
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/loleaflet/src/map/handler/Map.WOPI.js b/loleaflet/src/map/handler/Map.WOPI.js
index 3784b7108..ce92fdc81 100644
--- a/loleaflet/src/map/handler/Map.WOPI.js
+++ b/loleaflet/src/map/handler/Map.WOPI.js
@@ -152,6 +152,9 @@ L.Map.WOPI = L.Handler.extend({
 				    && msg.Values.imgurl) {
 					if (this._map._permission === 'edit') {
 						// add the css rule for the image
+						var style = $('html > head > style');
+						if (style.length == 0)
+							$('html > head').append('<style/>');
 						$('html > head > style').append('.w2ui-icon.' + msg.Values.id + '{background: url(' + msg.Values.imgurl + ') no-repeat center !important; }');
 
 						// add the item to the toolbar
commit 55c2a33c0e27ea18d38bd003295fcb476c622340
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Wed Jan 9 10:28:25 2019 +0100
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Wed Mar 6 09:44:55 2019 +0100

    loolconfig: Only show "config updated" message when something was changed
    
    Change-Id: I2d2b1e4b57cccbbe6f5608f0468bc9dfed3fd120
    Reviewed-on: https://gerrit.libreoffice.org/65997
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    (cherry picked from commit c377ca3fb2d1e28646bf64b38a641bc07ffb6bc4)
    Reviewed-on: https://gerrit.libreoffice.org/68792

diff --git a/tools/Config.cpp b/tools/Config.cpp
index 0e2505283..2c257c601 100644
--- a/tools/Config.cpp
+++ b/tools/Config.cpp
@@ -300,6 +300,7 @@ int Config::main(const std::vector<std::string>& args)
                 {
                     std::cerr << "Valid for " << validDays << " days - setting to config\n";
                     _loolConfig.setString("support_key", supportKeyString);
+                    changed = true;
                 }
             }
         }
@@ -307,8 +308,8 @@ int Config::main(const std::vector<std::string>& args)
         {
             std::cerr << "Removing empty support key\n";
             _loolConfig.remove("support_key");
+            changed = true;
         }
-        changed = true;
     }
 #endif
     else if (args[0] == "set")


More information about the Libreoffice-commits mailing list