| 1014 | } |
| 1015 | |
| 1016 | void LibraryWindow::moveAndImportComicsToCurrentFolder(const QList<QPair<QString, QString>> &comics) |
| 1017 | { |
| 1018 | QLOG_DEBUG() << "-moveAndImportComicsToCurrentFolder-"; |
| 1019 | if (comics.size() > 0) { |
| 1020 | QString destFolderPath = currentFolderPath(); |
| 1021 | |
| 1022 | QModelIndex folderDestination = getCurrentFolderIndex(); |
| 1023 | |
| 1024 | QProgressDialog *progressDialog = newProgressDialog(tr("Moving comics..."), comics.size()); |
| 1025 | |
| 1026 | auto comicFilesManager = new ComicFilesManager(); |
| 1027 | comicFilesManager->moveComicsTo(comics, destFolderPath, folderDestination); |
| 1028 | |
| 1029 | processComicFiles(comicFilesManager, progressDialog); |
| 1030 | } |
| 1031 | } |
| 1032 | |
| 1033 | void LibraryWindow::copyAndImportComicsToFolder(const QList<QPair<QString, QString>> &comics, const QModelIndex &miFolder) |
| 1034 | { |
nothing calls this directly
no test coverage detected