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
Multimedia
Kdenlive
Commits
b1df9fd3
Commit
b1df9fd3
authored
Sep 25, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix incorrect hash check causing incorrect reload dialog on project opening
parent
dff5f709
Pipeline
#35576
passed with stage
in 23 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/doc/documentchecker.cpp
View file @
b1df9fd3
...
...
@@ -316,10 +316,10 @@ bool DocumentChecker::hasErrorInClips()
}
}
else
if
(
service
.
startsWith
(
QLatin1String
(
"avformat"
)))
{
// Check if file changed
QByteArray
hash
=
Xml
::
getXmlProperty
(
e
,
"kdenlive:file_hash"
).
toLatin1
();
const
QByteArray
hash
=
Xml
::
getXmlProperty
(
e
,
"kdenlive:file_hash"
).
toLatin1
();
if
(
!
hash
.
isEmpty
())
{
QByteArray
fileData
=
ProjectClip
::
calculateHash
(
resource
).
first
;
if
(
hash
!=
QCryptographicHash
::
hash
(
fileData
,
QCryptographicHash
::
Md5
)
)
{
const
QByteArray
fileData
=
ProjectClip
::
calculateHash
(
resource
).
first
.
toHex
()
;
if
(
hash
!=
fileData
)
{
// Clip was changed, notify and trigger clip reload
Xml
::
removeXmlProperty
(
e
,
"kdenlive:file_hash"
);
m_changedClips
.
append
(
resource
);
...
...
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