Skip to content
GitLab
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
bdd6a8dc
Commit
bdd6a8dc
authored
Nov 09, 2022
by
Jean-Baptiste Mardelle
Browse files
fix possible crash on document open.
Related to
#1571
parent
437b0abe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/doc/kdenlivedoc.cpp
View file @
bdd6a8dc
...
...
@@ -372,7 +372,7 @@ void KdenliveDoc::initializeProperties(bool newDocument)
const
QStringList
KdenliveDoc
::
guidesCategories
()
const
{
if
(
!
m_documentProperties
.
contains
(
QStringLiteral
(
"guidesCategories"
)))
{
if
(
!
m_documentProperties
.
contains
(
QStringLiteral
(
"guidesCategories"
))
||
m_documentProperties
.
value
(
QStringLiteral
(
"guidesCategories"
)).
isEmpty
()
)
{
return
getDefaultGuideCategories
();
}
return
m_documentProperties
.
value
(
QStringLiteral
(
"guidesCategories"
)).
split
(
QLatin1Char
(
'\n'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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