Added message when incompatbile material is selected

CURA-2271
This commit is contained in:
Jaime van Kessel 2016-09-09 12:57:50 +02:00
parent ec587eb0dd
commit 2441275f29

View file

@ -531,6 +531,12 @@ class MachineManager(QObject):
containers[0].nameChanged.connect(self._onMaterialNameChanged)
if containers[0].getMetaDataEntry("compatible") == False:
message = Message(catalog.i18nc("@info:status",
"The selected material is imcompatible with the selected machine or configuration."))
message.show()
if old_quality:
if old_quality_changes:
new_quality = self._updateQualityChangesContainer(old_quality.getMetaDataEntry("quality_type"), old_quality_changes.getMetaDataEntry("name"))