Browse Source

Fix jobname when opening multiple files at once

fieldOfView 8 years ago
parent
commit
0af42587b0
1 changed files with 6 additions and 3 deletions
  1. 6 3
      resources/qml/Cura.qml

+ 6 - 3
resources/qml/Cura.qml

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