Do not store files that fail to load in recent files

Contributes to Ultimaker/Cura#103
This commit is contained in:
Arjen Hiemstra 2015-07-10 15:58:34 +02:00
parent 8fa0468787
commit 3e27c8b791

View file

@ -523,7 +523,7 @@ class CuraApplication(QtApplication):
op.push()
def _onJobFinished(self, job):
if type(job) is not ReadMeshJob:
if type(job) is not ReadMeshJob or not job.getResult():
return
f = QUrl.fromLocalFile(job.getFileName())