Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Network
Konqueror
Commits
773a6c13
Commit
773a6c13
authored
Jul 13, 2020
by
Stefano Crocco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 1 suggestion(s) to 1 file(s)
parent
d4cd50da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
webenginepart/src/webenginepartdownloadmanager.cpp
webenginepart/src/webenginepartdownloadmanager.cpp
+1
-1
No files found.
webenginepart/src/webenginepartdownloadmanager.cpp
View file @
773a6c13
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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