Fix crash on save

parent 63ac4da8
...@@ -876,9 +876,11 @@ QMap<QString, QString> TimelineController::documentProperties() ...@@ -876,9 +876,11 @@ QMap<QString, QString> TimelineController::documentProperties()
//TODO //TODO
//props.insert(QStringLiteral("audiotargettrack"), QString::number(audioTarget)); //props.insert(QStringLiteral("audiotargettrack"), QString::number(audioTarget));
//props.insert(QStringLiteral("videotargettrack"), QString::number(videoTarget)); //props.insert(QStringLiteral("videotargettrack"), QString::number(videoTarget));
QPair<QStringList, QStringList> chunks = m_timelinePreview->previewChunks(); if (m_timelinePreview) {
props.insert(QStringLiteral("previewchunks"), chunks.first.join(QLatin1Char(','))); QPair<QStringList, QStringList> chunks = m_timelinePreview->previewChunks();
props.insert(QStringLiteral("dirtypreviewchunks"), chunks.second.join(QLatin1Char(','))); props.insert(QStringLiteral("previewchunks"), chunks.first.join(QLatin1Char(',')));
props.insert(QStringLiteral("dirtypreviewchunks"), chunks.second.join(QLatin1Char(',')));
}
props.insert(QStringLiteral("disablepreview"), QString::number((int)m_disablePreview->isChecked())); props.insert(QStringLiteral("disablepreview"), QString::number((int)m_disablePreview->isChecked()));
return props; return props;
} }
......
Markdown is supported
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