aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/dialogs/ExportInstanceDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/ui/dialogs/ExportInstanceDialog.cpp')
-rw-r--r--launcher/ui/dialogs/ExportInstanceDialog.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/launcher/ui/dialogs/ExportInstanceDialog.cpp b/launcher/ui/dialogs/ExportInstanceDialog.cpp
index 59ae0a76..fb9c6542 100644
--- a/launcher/ui/dialogs/ExportInstanceDialog.cpp
+++ b/launcher/ui/dialogs/ExportInstanceDialog.cpp
@@ -378,7 +378,6 @@ void SaveIcon(InstancePtr m_instance)
bool ExportInstanceDialog::doExport()
{
- /*
auto name = FS::RemoveInvalidFilenameChars(m_instance->name());
const QString output = QFileDialog::getSaveFileName(
@@ -404,12 +403,15 @@ bool ExportInstanceDialog::doExport()
auto & blocked = proxyModel->blockedPaths();
using std::placeholders::_1;
+ QMessageBox::warning(this, tr("Error"), tr("Unable to export instance"));
+ return false;
+ // TODO Reimplement custom compressDir:
if (!JlCompress::compressDir(output, m_instance->instanceRoot(), name, std::bind(&SeparatorPrefixTree<'/'>::covers, blocked, _1)))
- { */
+ {
QMessageBox::warning(this, tr("Error"), tr("Unable to export instance"));
return false;
- /*}
- return true;*/
+ }
+ return true;
}
void ExportInstanceDialog::done(int result)