src/documentmanager.cpp

changeset 1016
3b279b5e57d3
parent 1014
f0a8ecb6a357
child 1017
fc1c13db9618
equal deleted inserted replaced
1015:92c6ec099075 1016:3b279b5e57d3
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;

mercurial