CURA-4581 The project name is cached instead of set

This commit is contained in:
Diego Prado Gesto 2017-11-21 12:34:08 +01:00
parent 43f339f927
commit feb0a08fd9

View file

@ -902,7 +902,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
base_file_name = os.path.basename(file_name)
if base_file_name.endswith(".curaproject.3mf"):
base_file_name = base_file_name[:base_file_name.rfind(".curaproject.3mf")]
Application.getInstance().projectFileLoaded.emit(base_file_name)
self.setWorkspaceName(base_file_name)
return nodes
## HACK: Replaces the material container in the given stack with a newly created material container.