The 3mf workspace reader no longer locks application if it is accedently called from main

CURA-1263
This commit is contained in:
Jaime van Kessel 2016-11-22 14:57:44 +01:00
parent 60d2d0d092
commit fa174763cf
2 changed files with 15 additions and 4 deletions

View file

@ -113,7 +113,10 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
self._dialog.setQualityChangesConflict(quality_changes_conflict)
self._dialog.setMaterialConflict(material_conflict)
self._dialog.show()
# Block until the dialog is closed.
self._dialog.waitForClose()
if self._dialog.getResult() == {}:
return WorkspaceReader.PreReadResult.cancelled