mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Conflict in quality changes is now handled less naive
Instead of only checking ID, we also check values of the QC CURA-1263
This commit is contained in:
parent
fcd4fb86f5
commit
100e1f4f40
2 changed files with 6 additions and 1 deletions
|
@ -78,7 +78,10 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
# Check if quality changes already exists.
|
# Check if quality changes already exists.
|
||||||
quality_changes = self._container_registry.findInstanceContainers(id = container_id)
|
quality_changes = self._container_registry.findInstanceContainers(id = container_id)
|
||||||
if quality_changes:
|
if quality_changes:
|
||||||
quality_changes_conflict = True
|
# Check if there really is a conflict by comparing the values
|
||||||
|
if quality_changes[0] != instance_container:
|
||||||
|
quality_changes_conflict = True
|
||||||
|
break
|
||||||
|
|
||||||
if machine_conflict or quality_changes_conflict:
|
if machine_conflict or quality_changes_conflict:
|
||||||
# There is a conflict; User should choose to either update the existing data, add everything as new data or abort
|
# There is a conflict; User should choose to either update the existing data, add everything as new data or abort
|
||||||
|
|
|
@ -43,9 +43,11 @@ class WorkspaceDialog(QObject):
|
||||||
|
|
||||||
def setMachineConflict(self, machine_conflict):
|
def setMachineConflict(self, machine_conflict):
|
||||||
self._has_machine_conflict = machine_conflict
|
self._has_machine_conflict = machine_conflict
|
||||||
|
self.machineConflictChanged.emit()
|
||||||
|
|
||||||
def setQualityChangesConflict(self, quality_changes_conflict):
|
def setQualityChangesConflict(self, quality_changes_conflict):
|
||||||
self._has_quality_changes_conflict = quality_changes_conflict
|
self._has_quality_changes_conflict = quality_changes_conflict
|
||||||
|
self.qualityChangesConflictChanged.emit()
|
||||||
|
|
||||||
def getResult(self):
|
def getResult(self):
|
||||||
return self._result
|
return self._result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue