mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 17:29:06 +08:00
Fix missing import
This commit is contained in:
parent
f867f3485e
commit
55a5464ed3
@ -116,6 +116,7 @@ class QualityManager(QObject):
|
||||
# For some reason, QML will get null or fail to convert type for MachineManager.activeQualityChangesGroup() to
|
||||
# a QObject. Setting the object ownership to QQmlEngine.CppOwnership doesn't work, but setting the object
|
||||
# parent to application seems to work.
|
||||
from cura.CuraApplication import CuraApplication
|
||||
quality_group = QualityGroup(node.getMetaDataEntry("name", ""), node.quality_type,
|
||||
parent = CuraApplication.getInstance())
|
||||
quality_group.setGlobalNode(node)
|
||||
|
Loading…
x
Reference in New Issue
Block a user