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
KIO Extras
Commits
d84203a9
Commit
d84203a9
authored
Aug 21, 2020
by
Stefan Brüns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly encode URL of thumbnails
Same as in kio core, see
frameworks/kio@371e523f
parent
9b6e1cda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
thumbnail/thumbnail.cpp
thumbnail/thumbnail.cpp
+1
-1
No files found.
thumbnail/thumbnail.cpp
View file @
d84203a9
...
...
@@ -701,7 +701,7 @@ bool ThumbnailProtocol::createSubThumbnail(QImage& thumbnail, const QString& fil
// 128 x 128 or 256 x 256 pixels
int
cacheSize
=
0
;
QCryptographicHash
md5
(
QCryptographicHash
::
Md5
);
md5
.
addData
(
QFile
::
encodeName
(
fileUrl
.
to
String
()
));
md5
.
addData
(
fileUrl
.
to
Encoded
(
));
const
QString
thumbName
=
QFile
::
encodeName
(
md5
.
result
().
toHex
()).
append
(
".png"
);
if
(
m_thumbBasePath
.
isEmpty
())
{
...
...
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