Replace deprecated .getContainer() calls with .container

part of CURA-6600
This commit is contained in:
Remco Burema 2019-08-15 13:40:08 +02:00
parent 47fe4b4c90
commit 7fb9642e45
13 changed files with 49 additions and 49 deletions

View file

@ -204,7 +204,7 @@ class QualityManager(QObject):
new_name = self._container_registry.uniqueName(new_name)
for node in quality_changes_group.getAllNodes():
container = node.getContainer()
container = node.container
if container:
container.setName(new_name)
@ -237,7 +237,7 @@ class QualityManager(QObject):
else:
new_name = self._container_registry.uniqueName(quality_changes_name)
for node in quality_changes_group.getAllNodes():
container = node.getContainer()
container = node.container
if not container:
continue
new_id = self._container_registry.uniqueName(container.getId())