summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-10-10 05:55:55 +0200
committerPetr Mrázek <peterix@gmail.com>2015-10-10 05:55:55 +0200
commit44db72ead568fe7ce22e1999aac02fd9aac9beea (patch)
treeb03d7fa01a0b2ef772c2770e2db99bc8aa69c768 /application
parent4fbcb3efb90368c084946600afdca05ca7c65519 (diff)
downloadMultiMC-44db72ead568fe7ce22e1999aac02fd9aac9beea.tar
MultiMC-44db72ead568fe7ce22e1999aac02fd9aac9beea.tar.gz
MultiMC-44db72ead568fe7ce22e1999aac02fd9aac9beea.tar.lz
MultiMC-44db72ead568fe7ce22e1999aac02fd9aac9beea.tar.xz
MultiMC-44db72ead568fe7ce22e1999aac02fd9aac9beea.zip
GH-93 add an option to not copy saves on instance copy
Diffstat (limited to 'application')
-rw-r--r--application/MainWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp
index 71888870..2469f983 100644
--- a/application/MainWindow.cpp
+++ b/application/MainWindow.cpp
@@ -1090,7 +1090,7 @@ InstancePtr MainWindow::instanceFromZipPack(QString instName, QString instGroup,
CustomMessageBox::selectable(this, tr("Error"), tr("Archive does not contain instance.cfg"))->show();
return nullptr;
}
- if (!FS::copyPath(instanceCfgFile.absoluteDir().absolutePath(), instDir))
+ if (!FS::copy(instanceCfgFile.absoluteDir().absolutePath(), instDir)())
{
CustomMessageBox::selectable(this, tr("Error"), tr("Unable to copy instance"))->show();
return nullptr;