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
KIO Extras
Commits
54066eb3
Commit
54066eb3
authored
Aug 30, 2020
by
Volker Krause
Browse files
Fix the build
Despite the name, fileUrl is already a QByteArray encoded URL here.
parent
1eeaf1a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
thumbnail/thumbnail.cpp
View file @
54066eb3
...
...
@@ -735,7 +735,7 @@ bool ThumbnailProtocol::createSubThumbnail(QImage& thumbnail, const QString& fil
// to the cache for future access.
if
(
thumbnailfile
.
open
(
QIODevice
::
WriteOnly
|
QIODevice
::
Truncate
))
{
QFileInfo
fi
(
filePath
);
thumbnail
.
setText
(
QStringLiteral
(
"Thumb::URI"
),
QString
::
fromUtf8
(
fileUrl
.
toEncoded
()
));
thumbnail
.
setText
(
QStringLiteral
(
"Thumb::URI"
),
QString
::
fromUtf8
(
fileUrl
));
thumbnail
.
setText
(
QStringLiteral
(
"Thumb::MTime"
),
QString
::
number
(
fi
.
lastModified
().
toSecsSinceEpoch
()));
thumbnail
.
setText
(
QStringLiteral
(
"Thumb::Size"
),
QString
::
number
(
fi
.
size
()));
...
...
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