Browse Source

Use .container property rather than deprecated getContainer() function

Contributes to issue CURA-6600.
Ghostkeeper 5 years ago
parent
commit
0b92c3f3df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/Machines/Models/IntentModel.py

+ 1 - 1
cura/Machines/Models/IntentModel.py

@@ -119,7 +119,7 @@ class IntentModel(ListModel):
         # Get layer_height from the quality profile for the GlobalStack
         if quality_group.node_for_global is None:
             return float(default_layer_height)
-        container = quality_group.node_for_global.getContainer()
+        container = quality_group.node_for_global.container
 
         layer_height = default_layer_height
         if container and container.hasProperty("layer_height", "value"):