296 objs = loader->objects(); |
296 objs = loader->objects(); |
297 delete loader; |
297 delete loader; |
298 return objs; |
298 return objs; |
299 } |
299 } |
300 |
300 |
301 LDDocument* DocumentManager::openDocument (QString path, bool search, bool implicit, LDDocument* fileToOverride, bool* aborted) |
301 LDDocument* DocumentManager::openDocument (QString path, bool search, bool implicit, LDDocument* fileToOverride, |
|
302 bool* aborted) |
302 { |
303 { |
303 // Convert the file name to lowercase when searching because some parts contain subfile |
304 // Convert the file name to lowercase when searching because some parts contain subfile |
304 // subfile references with uppercase file names. I'll assume here that the library will always |
305 // subfile references with uppercase file names. I'll assume here that the library will always |
305 // use lowercase file names for the part files. |
306 // use lowercase file names for the part files. |
306 QFile* fp; |
307 QFile* fp; |