From 8771ae2aaee46538391c560fd98dfd4680892003 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 8 Jul 2020 17:25:32 -0400 Subject: [PATCH] Ignore EventHandlers members not starting by "on" --- src/gui/PythonBridge/PythonRootBridge.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/PythonBridge/PythonRootBridge.qml b/src/gui/PythonBridge/PythonRootBridge.qml index 9045428d..1b233e34 100644 --- a/src/gui/PythonBridge/PythonRootBridge.qml +++ b/src/gui/PythonBridge/PythonRootBridge.qml @@ -7,6 +7,7 @@ PythonBridge { Component.onCompleted: { for (var func in eventHandlers) { if (! eventHandlers.hasOwnProperty(func)) continue + if (! func.startsWith("on")) continue setHandler(func.replace(/^on/, ""), eventHandlers[func]) }