Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Konqueror
Commits
773a6c13
Commit
773a6c13
authored
Jul 13, 2020
by
Stefano Crocco
Browse files
Apply 1 suggestion(s) to 1 file(s)
parent
d4cd50da
Changes
1
Hide whitespace changes
Inline
Side-by-side
webenginepart/src/webenginepartdownloadmanager.cpp
View file @
773a6c13
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment