| 16 | } |
| 17 | |
| 18 | void LegacyUpgradeTask::executeTask() |
| 19 | { |
| 20 | setStatus(tr("Copying instance %1").arg(m_origInstance->name())); |
| 21 | |
| 22 | FS::copy folderCopy(m_origInstance->instanceRoot(), m_stagingPath); |
| 23 | folderCopy.followSymlinks(true); |
| 24 | |
| 25 | m_copyFuture = QtConcurrent::run(QThreadPool::globalInstance(), folderCopy); |
| 26 | connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::finished, this, &LegacyUpgradeTask::copyFinished); |
| 27 | connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::canceled, this, &LegacyUpgradeTask::copyAborted); |
| 28 | m_copyFutureWatcher.setFuture(m_copyFuture); |
| 29 | } |
| 30 | |
| 31 | static QString decideVersion(const QString& currentVersion, const QString& intendedVersion) |
| 32 | { |
nothing calls this directly
no test coverage detected