| 453 | } |
| 454 | |
| 455 | void ModFolderPage::exportModMetadata() |
| 456 | { |
| 457 | auto selection = m_filterModel->mapSelectionToSource(ui->treeView->selectionModel()->selection()).indexes(); |
| 458 | auto selectedMods = m_model->selectedMods(selection); |
| 459 | if (selectedMods.length() == 0) |
| 460 | selectedMods = m_model->allMods(); |
| 461 | |
| 462 | std::sort(selectedMods.begin(), selectedMods.end(), [](const Mod* a, const Mod* b) { return a->name() < b->name(); }); |
| 463 | ExportToModListDialog dlg(m_instance->name(), selectedMods, this); |
| 464 | dlg.exec(); |
| 465 | } |
nothing calls this directly
no test coverage detected