| 20 | } |
| 21 | |
| 22 | void InstanceCopyTask::executeTask() |
| 23 | { |
| 24 | setStatus(tr("Copying instance %1").arg(m_origInstance->name())); |
| 25 | |
| 26 | FS::copy folderCopy(m_origInstance->instanceRoot(), m_stagingPath); |
| 27 | folderCopy.followSymlinks(false).blacklist(m_matcher.get()); |
| 28 | |
| 29 | m_copyFuture = QtConcurrent::run(QThreadPool::globalInstance(), folderCopy); |
| 30 | connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::finished, this, &InstanceCopyTask::copyFinished); |
| 31 | connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::canceled, this, &InstanceCopyTask::copyAborted); |
| 32 | m_copyFutureWatcher.setFuture(m_copyFuture); |
| 33 | } |
| 34 | |
| 35 | void InstanceCopyTask::copyFinished() |
| 36 | { |
nothing calls this directly
no test coverage detected