mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-28 13:21:10 -07:00
Fix missing import
This commit is contained in:
parent
f867f3485e
commit
55a5464ed3
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue