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
e84437b0
Commit
e84437b0
authored
Aug 01, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix crash on render/save when subtitle track was last active track.
CCBUG: 439355
parent
62901201
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/project/projectmanager.cpp
View file @
e84437b0
...
...
@@ -982,6 +982,9 @@ bool ProjectManager::updateTimeline(int pos, int scrollPos)
int
activeTrackPosition
=
m_project
->
getDocumentProperty
(
QStringLiteral
(
"activeTrack"
),
QString
::
number
(
-
1
)).
toInt
();
if
(
activeTrackPosition
>
-
1
&&
activeTrackPosition
<
m_mainTimelineModel
->
getTracksCount
())
{
pCore
->
window
()
->
getMainTimeline
()
->
controller
()
->
setActiveTrack
(
m_mainTimelineModel
->
getTrackIndexFromPosition
(
activeTrackPosition
));
}
else
{
// Subtitle model track was active
pCore
->
window
()
->
getMainTimeline
()
->
controller
()
->
setActiveTrack
(
activeTrackPosition
);
}
m_mainTimelineModel
->
setUndoStack
(
m_project
->
commandStack
());
...
...
Write
Preview
Markdown
is supported
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