summaryrefslogtreecommitdiffstats
path: root/api/logic/InstanceImportTask.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-05-25 01:24:27 +0200
committerPetr Mrázek <peterix@gmail.com>2017-05-25 01:24:27 +0200
commit50b8412a2690e8b2cbbbbc5c8481e45df084603d (patch)
tree8e5edad64b4e4d2d4f9a111b41a5b11f81a6fdcc /api/logic/InstanceImportTask.cpp
parent2a81e21f5eb2f2b3cf67e8d0194219057604b525 (diff)
downloadMultiMC-50b8412a2690e8b2cbbbbc5c8481e45df084603d.tar
MultiMC-50b8412a2690e8b2cbbbbc5c8481e45df084603d.tar.gz
MultiMC-50b8412a2690e8b2cbbbbc5c8481e45df084603d.tar.lz
MultiMC-50b8412a2690e8b2cbbbbc5c8481e45df084603d.tar.xz
MultiMC-50b8412a2690e8b2cbbbbc5c8481e45df084603d.zip
NOISSUE do not try to restore file permissions when importing modpacks
Diffstat (limited to 'api/logic/InstanceImportTask.cpp')
-rw-r--r--api/logic/InstanceImportTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/InstanceImportTask.cpp b/api/logic/InstanceImportTask.cpp
index f1b3d5aa..13ad863e 100644
--- a/api/logic/InstanceImportTask.cpp
+++ b/api/logic/InstanceImportTask.cpp
@@ -99,7 +99,7 @@ void InstanceImportTask::extractAndTweak()
QDir extractDir(m_stagingPath);
qDebug() << "Attempting to create instance from" << m_archivePath;
- m_extractFuture = QtConcurrent::run(QThreadPool::globalInstance(), MMCZip::extractDir, m_archivePath, extractDir.absolutePath());
+ m_extractFuture = QtConcurrent::run(QThreadPool::globalInstance(), MMCZip::extractDir, m_archivePath, extractDir.absolutePath(), MMCZip::Option::NoPermissions);
connect(&m_extractFutureWatcher, &QFutureWatcher<QStringList>::finished, this, &InstanceImportTask::extractFinished);
connect(&m_extractFutureWatcher, &QFutureWatcher<QStringList>::canceled, this, &InstanceImportTask::extractAborted);
m_extractFutureWatcher.setFuture(m_extractFuture);