Don't stop the readLocalFile process if there is no workspace reader

Or else the non-project files, which do not get a workspace reader by definition, won't be opened
in Cura.

CURA-7996
This commit is contained in:
Kostas Karmas 2021-02-08 11:58:12 +01:00
parent f8a9e7f2d2
commit 56b3cc5fe5

View File

@ -1758,10 +1758,6 @@ class CuraApplication(QtApplication):
is_project_file = self.checkIsValidProjectFile(file)
if is_project_file is False:
# The file isn't a valid project file so abort reading it.
return
if project_mode is None:
project_mode = self.getPreferences().getValue("cura/choice_on_open_project")