summaryrefslogtreecommitdiffstats
path: root/api/logic/InstanceCopyTask.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-01-22 15:20:05 +0100
committerPetr Mrázek <peterix@gmail.com>2017-01-22 15:20:05 +0100
commitcf43abc87ef56247e3012fa0d1fcefe7cb561824 (patch)
tree5bdb1d1f4ed0f53f63f4cf65c0365af7982953e7 /api/logic/InstanceCopyTask.cpp
parentc421134d4984f06275b1a9d35b3dd6e345d23d21 (diff)
downloadMultiMC-cf43abc87ef56247e3012fa0d1fcefe7cb561824.tar
MultiMC-cf43abc87ef56247e3012fa0d1fcefe7cb561824.tar.gz
MultiMC-cf43abc87ef56247e3012fa0d1fcefe7cb561824.tar.lz
MultiMC-cf43abc87ef56247e3012fa0d1fcefe7cb561824.tar.xz
MultiMC-cf43abc87ef56247e3012fa0d1fcefe7cb561824.zip
GH-1794 Only write to the instance.cfg once after copying FTB instances.
Diffstat (limited to 'api/logic/InstanceCopyTask.cpp')
-rw-r--r--api/logic/InstanceCopyTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/InstanceCopyTask.cpp b/api/logic/InstanceCopyTask.cpp
index 20c09907..b1bd39ef 100644
--- a/api/logic/InstanceCopyTask.cpp
+++ b/api/logic/InstanceCopyTask.cpp
@@ -51,7 +51,7 @@ void InstanceCopyTask::copyFinished()
instanceSettings->registerSetting("InstanceType", "Legacy");
// FIXME: and this too? errors???
- m_origInstance->copy(m_stagingPath);
+ m_origInstance->copy(instanceSettings, m_stagingPath);
InstancePtr inst(new NullInstance(m_globalSettings, instanceSettings, m_stagingPath));
inst->setName(m_instName);