Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Akhil K Gangadharan
kdenlive
Commits
304ea85e
Commit
304ea85e
authored
Apr 10, 2018
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix luma files lost when opening project with AppImage
parent
3619d5ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
src/doc/documentchecker.cpp
src/doc/documentchecker.cpp
+18
-5
No files found.
src/doc/documentchecker.cpp
View file @
304ea85e
...
...
@@ -237,6 +237,7 @@ bool DocumentChecker::hasErrorInClips()
}
QMap
<
QString
,
QString
>
autoFixLuma
;
QString
lumaPath
;
// Check existence of luma files
foreach
(
const
QString
&
lumafile
,
filesToCheck
)
{
filePath
=
lumafile
;
...
...
@@ -244,16 +245,29 @@ bool DocumentChecker::hasErrorInClips()
filePath
.
prepend
(
root
);
}
if
(
!
QFile
::
exists
(
filePath
))
{
QString
fixedLuma
;
QString
lumaName
=
filePath
.
section
(
QLatin1Char
(
'/'
),
-
1
)
;
// check if this was an old format luma, not in correct folder
fixedLuma
=
filePath
.
section
(
QLatin1Char
(
'/'
),
0
,
-
2
);
fixedLuma
.
ap
pend
(
hdProfile
?
QStringLiteral
(
"/HD/"
)
:
QStringLiteral
(
"/PAL/"
));
fixedLuma
.
append
(
filePath
.
section
(
QLatin1Char
(
'/'
),
-
1
)
);
QString
fixedLuma
=
filePath
.
section
(
QLatin1Char
(
'/'
),
0
,
-
2
);
lumaName
.
pre
pend
(
hdProfile
?
QStringLiteral
(
"/HD/"
)
:
QStringLiteral
(
"/PAL/"
));
fixedLuma
.
append
(
lumaName
);
if
(
QFile
::
exists
(
fixedLuma
))
{
// Auto replace pgm with png for lumas
autoFixLuma
.
insert
(
filePath
,
fixedLuma
);
continue
;
}
// Check MLT folder
if
(
lumaPath
.
isEmpty
())
{
QDir
dir
(
QCoreApplication
::
applicationDirPath
());
dir
.
cdUp
();
dir
.
cd
(
QStringLiteral
(
"share/kdenlive/lumas/"
));
lumaPath
=
dir
.
absolutePath
();
}
lumaName
.
prepend
(
lumaPath
);
if
(
QFile
::
exists
(
lumaName
))
{
autoFixLuma
.
insert
(
filePath
,
lumaName
);
continue
;
}
if
(
filePath
.
endsWith
(
QLatin1String
(
".pgm"
)))
{
fixedLuma
=
filePath
.
section
(
QLatin1Char
(
'.'
)
,
0
,
-
2
)
+
QStringLiteral
(
".png"
);
}
else
if
(
filePath
.
endsWith
(
QLatin1String
(
".png"
)))
{
...
...
@@ -282,7 +296,6 @@ bool DocumentChecker::hasErrorInClips()
}
}
}
if
(
m_missingClips
.
isEmpty
()
&&
missingLumas
.
isEmpty
()
&&
missingProxies
.
isEmpty
()
&&
missingSources
.
isEmpty
()
&&
m_missingFonts
.
isEmpty
())
{
return
false
;
}
...
...
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