| 2546 | } |
| 2547 | |
| 2548 | void MainWindow::saveArchiveList() |
| 2549 | { |
| 2550 | if (m_OrganizerCore.isArchivesInit()) { |
| 2551 | SafeWriteFile archiveFile(m_OrganizerCore.currentProfile()->getArchivesFileName()); |
| 2552 | for (int i = 0; i < ui->bsaList->topLevelItemCount(); ++i) { |
| 2553 | QTreeWidgetItem* tlItem = ui->bsaList->topLevelItem(i); |
| 2554 | for (int j = 0; j < tlItem->childCount(); ++j) { |
| 2555 | QTreeWidgetItem* item = tlItem->child(j); |
| 2556 | if (item->checkState(0) == Qt::Checked) { |
| 2557 | archiveFile->write(item->text(0).toUtf8().append("\r\n")); |
| 2558 | } |
| 2559 | } |
| 2560 | } |
| 2561 | archiveFile.commitIfDifferent(m_ArchiveListHash); |
| 2562 | } else { |
| 2563 | log::debug("archive list not initialised"); |
| 2564 | } |
| 2565 | } |
| 2566 | |
| 2567 | void MainWindow::openInstanceFolder() |
| 2568 | { |
nothing calls this directly
no test coverage detected