mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
NOISSUE Do not ask to overwrite existing file twice when exporting instances
This commit is contained in:
parent
33b6222f9f
commit
fbec48080b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user