From fbec48080b6e8abc2ec901c7b429661ecbc18491 Mon Sep 17 00:00:00 2001 From: iarspider Date: Wed, 20 Jan 2016 21:11:58 +0300 Subject: [PATCH] NOISSUE Do not ask to overwrite existing file twice when exporting instances --- application/dialogs/ExportInstanceDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/dialogs/ExportInstanceDialog.cpp b/application/dialogs/ExportInstanceDialog.cpp index 8d320a3c..a38fd238 100644 --- a/application/dialogs/ExportInstanceDialog.cpp +++ b/application/dialogs/ExportInstanceDialog.cpp @@ -386,7 +386,7 @@ bool ExportInstanceDialog::doExport() const QString output = QFileDialog::getSaveFileName( this, tr("Export %1").arg(m_instance->name()), - FS::PathCombine(QDir::homePath(), name + ".zip"), "Zip (*.zip)"); + FS::PathCombine(QDir::homePath(), name + ".zip"), "Zip (*.zip)", nullptr, QFileDialog::DontConfirmOverwrite); if (output.isNull()) { return false;