summaryrefslogtreecommitdiffstats
path: root/api/logic/InstanceImportTask.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-09-05 23:38:17 +0200
committerPetr Mrázek <peterix@gmail.com>2017-09-05 23:38:17 +0200
commitb61407a75d06abd61ce89f972581fa36a961d906 (patch)
tree8c7f113a053e5f660756bda2f11cbda5b8af6985 /api/logic/InstanceImportTask.h
parentd80382180ef14d814eb9f6d7f2bf5db362f25cc2 (diff)
downloadMultiMC-b61407a75d06abd61ce89f972581fa36a961d906.tar
MultiMC-b61407a75d06abd61ce89f972581fa36a961d906.tar.gz
MultiMC-b61407a75d06abd61ce89f972581fa36a961d906.tar.lz
MultiMC-b61407a75d06abd61ce89f972581fa36a961d906.tar.xz
MultiMC-b61407a75d06abd61ce89f972581fa36a961d906.zip
NOISSUE retry committing instances if it fails a few times
This should fix issues with antivirus locking files/folders on Windows.
Diffstat (limited to 'api/logic/InstanceImportTask.h')
-rw-r--r--api/logic/InstanceImportTask.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/api/logic/InstanceImportTask.h b/api/logic/InstanceImportTask.h
index e5f35b3a..99397009 100644
--- a/api/logic/InstanceImportTask.h
+++ b/api/logic/InstanceImportTask.h
@@ -20,7 +20,7 @@ class MULTIMC_LOGIC_EXPORT InstanceImportTask : public Task
{
Q_OBJECT
public:
- explicit InstanceImportTask(SettingsObjectPtr settings, const QUrl sourceUrl, BaseInstanceProvider * target, const QString &instName,
+ explicit InstanceImportTask(SettingsObjectPtr settings, const QUrl sourceUrl, const QString & stagingPath, const QString &instName,
const QString &instIcon, const QString &instGroup);
protected:
@@ -44,7 +44,6 @@ private: /* data */
NetJobPtr m_filesNetJob;
shared_qobject_ptr<Flame::FileResolvingTask> m_modIdResolver;
QUrl m_sourceUrl;
- BaseInstanceProvider * m_target;
QString m_archivePath;
bool m_downloadRequired = false;
QString m_instName;