| 339 | } |
| 340 | |
| 341 | NetJob::Ptr AssetsIndex::getDownloadJob() |
| 342 | { |
| 343 | auto job = new NetJob(QObject::tr("Assets for %1").arg(id), APPLICATION->network()); |
| 344 | for (auto &object : objects.values()) |
| 345 | { |
| 346 | auto dl = object.getDownloadAction(); |
| 347 | if(dl) |
| 348 | { |
| 349 | job->addNetAction(dl); |
| 350 | } |
| 351 | } |
| 352 | if(job->size()) |
| 353 | return job; |
| 354 | return nullptr; |
| 355 | } |
no test coverage detected