Blame uranium-lulzbot-3.6.8-qt512-function-fix.patch

d619db4
diff -up uranium-lulzbot-3.6.8/UM/Qt/Bindings/i18nCatalogProxy.py.qt512 uranium-lulzbot-3.6.8/UM/Qt/Bindings/i18nCatalogProxy.py
d619db4
--- uranium-lulzbot-3.6.8/UM/Qt/Bindings/i18nCatalogProxy.py.qt512	2019-05-14 09:39:04.710614213 -0400
d619db4
+++ uranium-lulzbot-3.6.8/UM/Qt/Bindings/i18nCatalogProxy.py	2019-05-14 09:39:22.733261951 -0400
d619db4
@@ -86,9 +86,9 @@ class i18nCatalogProxy(QObject): # [Code
d619db4
     #   \todo Move this to a more generic place so more things can use it.
d619db4
     def _wrapFunction(self, engine, this_object, function):
d619db4
         # JavaScript code that wraps the Python method call in a closure
d619db4
-        wrap_js = """function(this_object) {{
d619db4
+        wrap_js = """(function(this_object) {{
d619db4
             return function({args}) {{ return this_object.{function}({args}) }}
d619db4
-        }}"""
d619db4
+        }})"""
d619db4
 
d619db4
         # Get the function name and argument list.
d619db4
         function_name = function.__name__