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

Restor subtitle track state (hidden/locked) on project opening

parent 8d33fe63
......@@ -4224,7 +4224,12 @@ void MainWindow::slotEditSubtitle(QMap<QString, QString> subProperties)
subFile.copy(workPath);
subtitleModel->parseSubtitle(workPath);
}
subtitleModel->loadProperties(subProperties);
if (!subProperties.isEmpty()) {
subtitleModel->loadProperties(subProperties);
// Load the disabled / locked state of the subtitle
getMainTimeline()->controller()->subtitlesLockedChanged();
getMainTimeline()->controller()->subtitlesDisabledChanged();
}
getMainTimeline()->showSubtitles = true;
m_buttonSubtitleEditTool->setChecked(true);
getMainTimeline()->connectSubtitleModel(true);
......
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