| 997 | } |
| 998 | |
| 999 | void LibraryWindow::copyAndImportComicsToCurrentFolder(const QList<QPair<QString, QString>> &comics) |
| 1000 | { |
| 1001 | QLOG_DEBUG() << "-copyAndImportComicsToCurrentFolder-"; |
| 1002 | if (comics.size() > 0) { |
| 1003 | QString destFolderPath = currentFolderPath(); |
| 1004 | |
| 1005 | QModelIndex folderDestination = getCurrentFolderIndex(); |
| 1006 | |
| 1007 | QProgressDialog *progressDialog = newProgressDialog(tr("Copying comics..."), comics.size()); |
| 1008 | |
| 1009 | auto comicFilesManager = new ComicFilesManager(); |
| 1010 | comicFilesManager->copyComicsTo(comics, destFolderPath, folderDestination); |
| 1011 | |
| 1012 | processComicFiles(comicFilesManager, progressDialog); |
| 1013 | } |
| 1014 | } |
| 1015 | |
| 1016 | void LibraryWindow::moveAndImportComicsToCurrentFolder(const QList<QPair<QString, QString>> &comics) |
| 1017 | { |
nothing calls this directly
no test coverage detected