Skip to content
GitLab
Menu
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
d4cd50da
Commit
d4cd50da
authored
Jul 13, 2020
by
Stefano Crocco
Browse files
Apply 1 suggestion(s) to 1 file(s)
parent
02e59616
Changes
1
Hide whitespace changes
Inline
Side-by-side
webenginepart/src/webenginepartdownloadmanager.cpp
View file @
d4cd50da
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
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