summaryrefslogtreecommitdiffstats
path: root/application/dialogs
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-05-31 09:17:45 +0200
committerPetr Mrázek <peterix@gmail.com>2017-05-31 09:20:24 +0200
commit8a1da912191a241f4c211bb66699e9679c047b43 (patch)
tree4511c4cb6cef90d9615985b849f0ea1e9016a534 /application/dialogs
parentcdc9bed83f9110bdf41133a3489ed2fca543ee32 (diff)
downloadMultiMC-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')
-rw-r--r--application/dialogs/ExportInstanceDialog.cpp4
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;