Fix setting container type of subclasses

This mistake caused all of the container types to end up as either None or the actual instance itself, which was causing crashes.

Contributes to issue CURA-6096.
This commit is contained in:
Ghostkeeper 2021-09-08 15:46:25 +02:00
parent adac0af1ec
commit 057ba8cdeb
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
3 changed files with 3 additions and 3 deletions

View file

@ -19,4 +19,4 @@ class IntentDatabaseHandler(DatabaseMetadataContainerController):
"version": "text",
"setting_version": "text"
}))
self.container_type = InstanceContainer
self._container_type = InstanceContainer

View file

@ -19,7 +19,7 @@ class QualityDatabaseHandler(DatabaseMetadataContainerController):
"version": "text",
"setting_version": "text"
}))
self.container_type = InstanceContainer
self._container_type = InstanceContainer
def groomMetadata(self, metadata: metadata_type) -> metadata_type:
"""

View file

@ -16,4 +16,4 @@ class VariantDatabaseHandler(DatabaseMetadataContainerController):
"version": "text",
"setting_version": "text"
}))
self.container_type = InstanceContainer
self._container_type = InstanceContainer