diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-05-31 09:17:45 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-05-31 09:20:24 +0200 |
commit | 8a1da912191a241f4c211bb66699e9679c047b43 (patch) | |
tree | 4511c4cb6cef90d9615985b849f0ea1e9016a534 /application/dialogs/ExportInstanceDialog.cpp | |
parent | cdc9bed83f9110bdf41133a3489ed2fca543ee32 (diff) | |
download | MultiMC-8a1da912191a241f4c211bb66699e9679c047b43.tar MultiMC-8a1da912191a241f4c211bb66699e9679c047b43.tar.gz MultiMC-8a1da912191a241f4c211bb66699e9679c047b43.tar.lz MultiMC-8a1da912191a241f4c211bb66699e9679c047b43.tar.xz MultiMC-8a1da912191a241f4c211bb66699e9679c047b43.zip |
NOISSUE finish cleaning quazip
All LGPL code is back in the customized quazip fork
Diffstat (limited to 'application/dialogs/ExportInstanceDialog.cpp')
-rw-r--r-- | application/dialogs/ExportInstanceDialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/application/dialogs/ExportInstanceDialog.cpp b/application/dialogs/ExportInstanceDialog.cpp index bdee38d6..8e488b3f 100644 --- a/application/dialogs/ExportInstanceDialog.cpp +++ b/application/dialogs/ExportInstanceDialog.cpp @@ -405,7 +405,9 @@ bool ExportInstanceDialog::doExport() SaveIcon(m_instance); - if (!MMCZip::compressDir(output, m_instance->instanceRoot(), name, &proxyModel->blockedPaths())) + auto & blocked = proxyModel->blockedPaths(); + using std::placeholders::_1; + if (!JlCompress::compressDir(output, m_instance->instanceRoot(), name, std::bind(&SeparatorPrefixTree<'/'>::contains, blocked, _1))) { QMessageBox::warning(this, tr("Error"), tr("Unable to export instance")); return false; |