Commit bdd6a8dc authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

fix possible crash on document open.

Related to #1571
parent 437b0abe
......@@ -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'));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment