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
6fa5116d
Commit
6fa5116d
authored
Apr 03, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix crash opening old project file
BUG: 419563
parent
88013146
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/doc/documentvalidator.cpp
View file @
6fa5116d
...
...
@@ -1777,7 +1777,7 @@ bool DocumentValidator::upgrade(double version, const double currentVersion)
// AV clips are not supported anymore. Check if we have some and add extra audio tracks if necessary
// Update the main bin name as well to be xml compliant
for
(
int
i
=
0
;
i
<
playlists
.
count
();
i
++
)
{
if
(
playlists
.
at
(
i
).
toElement
().
attribute
(
QStringLiteral
(
"id"
))
==
QLatin1String
(
"main bin"
))
{
if
(
playlists
.
at
(
i
).
toElement
().
attribute
(
QStringLiteral
(
"id"
))
==
QLatin1String
(
"main bin"
)
||
playlists
.
at
(
i
).
toElement
().
attribute
(
QStringLiteral
(
"id"
))
==
QLatin1String
(
"main_bin"
)
)
{
playlists
.
at
(
i
).
toElement
().
setAttribute
(
QStringLiteral
(
"id"
),
BinPlaylist
::
binPlaylistId
);
mainplaylist
=
playlists
.
at
(
i
);
QString
oldGroups
=
Xml
::
getXmlProperty
(
mainplaylist
.
toElement
(),
QStringLiteral
(
"kdenlive:clipgroups"
));
...
...
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