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

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

parent d4cd50da
......@@ -103,7 +103,7 @@ void WebEnginePartDownloadManager::downloadBlob(QWebEngineDownloadItem* it)
const QString downloadDir = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation);
QMimeDatabase db;
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);
if (file.isEmpty()) {
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