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; |