Skip to content
GitLab
Menu
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
cbc66370
Commit
cbc66370
authored
Dec 06, 2020
by
Jean-Baptiste Mardelle
Browse files
Restor subtitle track state (hidden/locked) on project opening
parent
5dd33af2
Pipeline
#43117
passed with stage
in 9 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mainwindow.cpp
View file @
cbc66370
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
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