Fix jobname when opening multiple files at once

This commit is contained in:
fieldOfView 2016-10-10 18:42:55 +02:00
parent 6852e59404
commit 0af42587b0

View file

@ -666,12 +666,15 @@ UM.MainWindow
for(var i in fileUrls)
{
UM.MeshFileHandler.readLocalFile(fileUrls[i])
}
var meshName = backgroundItem.getMeshName(fileUrl.toString())
if (i == fileUrls.length - 1)
{
var meshName = backgroundItem.getMeshName(fileUrls.toString())
backgroundItem.hasMesh(decodeURIComponent(meshName))
}
}
}
}
Connections
{