Commit 28a448fc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't ask twice for overwriting file

parent 9d1f9a50
......@@ -361,7 +361,7 @@ void FilterImporterExporter::exportFilters(const QList<MailFilter *> &filters, c
{
QUrl saveUrl;
if (fileName.isEmpty()) {
saveUrl = QFileDialog::getSaveFileUrl(d->mParent, i18n("Export Filters"), QUrl::fromLocalFile(QDir::homePath()));
saveUrl = QFileDialog::getSaveFileUrl(d->mParent, i18n("Export Filters"), QUrl::fromLocalFile(QDir::homePath()), QString(), nullptr, QFileDialog::DontConfirmOverwrite);
if (saveUrl.isEmpty()
|| !MessageViewer::Util::checkOverwrite(saveUrl, d->mParent)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment