Commit 773a6c13 authored by Stefano Crocco's avatar Stefano Crocco
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent d4cd50da
...@@ -103,7 +103,7 @@ void WebEnginePartDownloadManager::downloadBlob(QWebEngineDownloadItem* it) ...@@ -103,7 +103,7 @@ void WebEnginePartDownloadManager::downloadBlob(QWebEngineDownloadItem* it)
const QString downloadDir = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation); const QString downloadDir = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation);
QMimeDatabase db; QMimeDatabase db;
QMimeType type = db.mimeTypeForName(it->mimeType()); QMimeType type = db.mimeTypeForName(it->mimeType());
QString filters = i18nc("Filter in file dialog", "%1 (*.%2);;All files", type.comment(), type.preferredSuffix()); const QString filters = i18nc("Filter in file dialog", "%1 (*.%2);;All files", type.comment(), type.preferredSuffix());
QString file = QFileDialog::getSaveFileName(w, QString(), downloadDir, filters); QString file = QFileDialog::getSaveFileName(w, QString(), downloadDir, filters);
if (file.isEmpty()) { if (file.isEmpty()) {
it->cancel(); it->cancel();
......
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