summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2016-01-20 21:11:58 +0300
committeriarspider <iarspider@gmail.com>2016-01-20 21:11:58 +0300
commitfbec48080b6e8abc2ec901c7b429661ecbc18491 (patch)
tree372afd73d1addfa49ce58b857c65cf19fe8e9730
parent33b6222f9ff658e7ce3095c8b96967ba14b72804 (diff)
downloadMultiMC-fbec48080b6e8abc2ec901c7b429661ecbc18491.tar
MultiMC-fbec48080b6e8abc2ec901c7b429661ecbc18491.tar.gz
MultiMC-fbec48080b6e8abc2ec901c7b429661ecbc18491.tar.lz
MultiMC-fbec48080b6e8abc2ec901c7b429661ecbc18491.tar.xz
MultiMC-fbec48080b6e8abc2ec901c7b429661ecbc18491.zip
NOISSUE Do not ask to overwrite existing file twice when exporting instances
-rw-r--r--application/dialogs/ExportInstanceDialog.cpp2
1 files changed, 1 insertions, 1 deletions
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;