CURA-4451 Minor changes

This commit is contained in:
Diego Prado Gesto 2017-10-26 16:53:31 +02:00
parent 524ace9b04
commit b9c318d432
3 changed files with 2 additions and 10 deletions

View File

@ -75,7 +75,6 @@ class CrashHandler:
## Creates a modal dialog. ## Creates a modal dialog.
def _createDialog(self): def _createDialog(self):
self.dialog = QDialog()
self.dialog.setMinimumWidth(640) self.dialog.setMinimumWidth(640)
self.dialog.setMinimumHeight(640) self.dialog.setMinimumHeight(640)
self.dialog.setWindowTitle(catalog.i18nc("@title:window", "Crash Report")) self.dialog.setWindowTitle(catalog.i18nc("@title:window", "Crash Report"))

View File

@ -198,13 +198,6 @@ class QualityManager:
else: else:
materials.append(global_container_stack.material) materials.append(global_container_stack.material)
# if extruder_stacks:
# # Multi-extruder machine detected.
# materials = [stack.material for stack in extruder_stacks]
# else:
# # Machine with one extruder.
# materials = [global_container_stack.material]
quality_types = self.findAllQualityTypesForMachineAndMaterials(global_machine_definition, materials) quality_types = self.findAllQualityTypesForMachineAndMaterials(global_machine_definition, materials)
# Map the list of quality_types to InstanceContainers # Map the list of quality_types to InstanceContainers

View File

@ -166,7 +166,7 @@ class ProfilesModel(InstanceContainersModel):
for item in containers: for item in containers:
profile = container_registry.findContainers(id = item["id"]) profile = container_registry.findContainers(id = item["id"])
# when the profile is not supported # When for some reason there is no profile container in the registry
if not profile: if not profile:
self._setItemLayerHeight(item, "", "") self._setItemLayerHeight(item, "", "")
item["available"] = False item["available"] = False
@ -175,7 +175,7 @@ class ProfilesModel(InstanceContainersModel):
profile = profile[0] profile = profile[0]
# empty qualities should show in the list (they are "Not Supported" profiles) # When there is a profile but it's an empty quality should. It's shown in the list (they are "Not Supported" profiles)
if profile.getId() == "empty_quality": if profile.getId() == "empty_quality":
self._setItemLayerHeight(item, "", "") self._setItemLayerHeight(item, "", "")
item["available"] = True item["available"] = True