Commit d4cd50da authored by Stefano Crocco's avatar Stefano Crocco

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

parent 02e59616
...@@ -100,7 +100,7 @@ void WebEnginePartDownloadManager::performDownload(QWebEngineDownloadItem* it) ...@@ -100,7 +100,7 @@ void WebEnginePartDownloadManager::performDownload(QWebEngineDownloadItem* it)
void WebEnginePartDownloadManager::downloadBlob(QWebEngineDownloadItem* it) void WebEnginePartDownloadManager::downloadBlob(QWebEngineDownloadItem* it)
{ {
QWidget *w =it->page() ? it->page()->view() : nullptr; QWidget *w =it->page() ? it->page()->view() : nullptr;
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()); QString filters = i18nc("Filter in file dialog", "%1 (*.%2);;All files", type.comment(), type.preferredSuffix());
......
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