diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 532a60b58c..80fee88201 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -558,7 +558,9 @@ class CuraApplication(QtApplication): qmlRegisterSingletonType(cura.Settings.ContainerManager, "Cura", 1, 0, "ContainerManager", cura.Settings.ContainerManager.createContainerManager) - qmlRegisterSingletonType(QUrl.fromLocalFile(Resources.getPath(CuraApplication.ResourceTypes.QmlFiles, "Actions.qml")), "Cura", 1, 0, "Actions") + # As of Qt5.7, it is necessary to get rid of any ".." in the path for the singleton to work. + actions_url = QUrl.fromLocalFile(os.path.abspath(Resources.getPath(CuraApplication.ResourceTypes.QmlFiles, "Actions.qml"))) + qmlRegisterSingletonType(actions_url, "Cura", 1, 0, "Actions") engine.rootContext().setContextProperty("ExtruderManager", cura.Settings.ExtruderManager.getInstance())