diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-10-10 05:55:55 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-10-10 05:55:55 +0200 |
commit | 44db72ead568fe7ce22e1999aac02fd9aac9beea (patch) | |
tree | b03d7fa01a0b2ef772c2770e2db99bc8aa69c768 /application/MainWindow.cpp | |
parent | 4fbcb3efb90368c084946600afdca05ca7c65519 (diff) | |
download | MultiMC-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/MainWindow.cpp')
-rw-r--r-- | application/MainWindow.cpp | 2 |
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; |