| 230 | } |
| 231 | |
| 232 | void ResourceDownloadDialog::setButtonStatus() |
| 233 | { |
| 234 | auto selected = false; |
| 235 | for (auto page : m_container->getPages()) { |
| 236 | auto res = static_cast<ResourcePage*>(page); |
| 237 | selected = selected || res->hasSelectedPacks(); |
| 238 | } |
| 239 | m_buttons.button(QDialogButtonBox::Ok)->setEnabled(selected); |
| 240 | } |
| 241 | |
| 242 | const QList<ResourceDownloadDialog::DownloadTaskPtr> ResourceDownloadDialog::getTasks() |
| 243 | { |
nothing calls this directly
no test coverage detected