Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Scott Petrovic
kdenlive
Commits
235df2d3
Commit
235df2d3
authored
Apr 05, 2019
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing clips appearing twice in project open dialog
parent
d18f65bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
src/doc/documentchecker.cpp
src/doc/documentchecker.cpp
+15
-4
No files found.
src/doc/documentchecker.cpp
View file @
235df2d3
...
...
@@ -393,11 +393,22 @@ bool DocumentChecker::hasErrorInClips()
clipType
=
i18n
(
"Unknown"
);
type
=
ClipType
::
Unknown
;
}
QString
clipId
=
e
.
attribute
(
QStringLiteral
(
"id"
)).
section
(
QLatin1Char
(
'_'
),
0
,
0
);
if
(
processedIds
.
contains
(
clipId
))
{
continue
;
// Newer project format
QString
clipId
=
Xml
::
getXmlProperty
(
e
,
QStringLiteral
(
"kdenlive:id"
));
if
(
!
clipId
.
isEmpty
())
{
if
(
processedIds
.
contains
(
clipId
))
{
continue
;
}
processedIds
<<
clipId
;
}
else
{
// Older project file format
clipId
=
e
.
attribute
(
QStringLiteral
(
"id"
)).
section
(
QLatin1Char
(
'_'
),
0
,
0
);
if
(
processedIds
.
contains
(
clipId
))
{
continue
;
}
processedIds
<<
clipId
;
}
processedIds
<<
clipId
;
QTreeWidgetItem
*
item
=
new
QTreeWidgetItem
(
m_ui
.
treeWidget
,
QStringList
()
<<
clipType
);
item
->
setData
(
0
,
statusRole
,
CLIPMISSING
);
item
->
setData
(
0
,
clipTypeRole
,
(
int
)
type
);
...
...
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