| 307 | } |
| 308 | |
| 309 | NetJob::Ptr AssetsIndex::getDownloadJob() |
| 310 | { |
| 311 | auto job = makeShared<NetJob>(QObject::tr("Assets for %1").arg(id), APPLICATION->network()); |
| 312 | for (auto& object : objects.values()) { |
| 313 | auto dl = object.getDownloadAction(); |
| 314 | if (dl) { |
| 315 | job->addNetAction(dl); |
| 316 | } |
| 317 | } |
| 318 | if (job->size()) |
| 319 | return job; |
| 320 | return nullptr; |
| 321 | } |
no test coverage detected