src/Document.cc

changeset 648
ed6170728ae4
parent 644
93dcd1a0e4bd
child 690
9e9c52ca955e
equal deleted inserted replaced
647:b87941923eb4 648:ed6170728ae4
279 279
280 if (subdirs) 280 if (subdirs)
281 { 281 {
282 // Look in sub-directories: parts and p. Also look in net_downloadpath, since that's 282 // Look in sub-directories: parts and p. Also look in net_downloadpath, since that's
283 // where we download parts from the PT to. 283 // where we download parts from the PT to.
284 for (const QString& topdir : initlist<QString> ({ io_ldpath, net_downloadpath })) 284 for (const QString& topdir : QList<QString> ({ io_ldpath, net_downloadpath }))
285 { 285 {
286 for (const QString& subdir : initlist<QString> ({ "parts", "p" })) 286 for (const QString& subdir : QList<QString> ({ "parts", "p" }))
287 { 287 {
288 fullPath = format ("%1" DIRSLASH "%2" DIRSLASH "%3", topdir, subdir, relpath); 288 fullPath = format ("%1" DIRSLASH "%2" DIRSLASH "%3", topdir, subdir, relpath);
289 289
290 if (QFile::exists (fullPath)) 290 if (QFile::exists (fullPath))
291 return fullPath; 291 return fullPath;

mercurial