| 353 | } |
| 354 | |
| 355 | void ModFolderPage::modCurrent(const QModelIndex ¤t, const QModelIndex &previous) |
| 356 | { |
| 357 | if (!current.isValid()) |
| 358 | { |
| 359 | ui->frame->clear(); |
| 360 | return; |
| 361 | } |
| 362 | auto sourceCurrent = m_filterModel->mapToSource(current); |
| 363 | int row = sourceCurrent.row(); |
| 364 | Mod &m = m_mods->operator[](row); |
| 365 | ui->frame->updateWithMod(m); |
| 366 | } |
nothing calls this directly
no test coverage detected