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
11b0c242
Commit
11b0c242
authored
Mar 20, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix editing title/color clips does not invalidate timeline preview.
BUG: 437427
parent
43f4e060
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/projectclip.cpp
View file @
11b0c242
...
...
@@ -1352,6 +1352,7 @@ void ProjectClip::setProperties(const QMap<QString, QString> &properties, bool r
}
if
(
!
reload
&&
(
properties
.
contains
(
QStringLiteral
(
"xmldata"
))
||
!
passProperties
.
isEmpty
()))
{
reload
=
true
;
updateRoles
<<
TimelineModel
::
ResourceRole
;
}
if
(
refreshAnalysis
)
{
emit
refreshAnalysisPanel
();
...
...
src/timeline2/model/timelinemodel.cpp
View file @
11b0c242
...
...
@@ -5444,6 +5444,10 @@ void TimelineModel::requestClipUpdate(int clipId, const QVector<int> &roles)
if
(
roles
.
contains
(
TimelineModel
::
ReloadAudioThumbRole
))
{
m_allClips
[
clipId
]
->
forceThumbReload
=
!
m_allClips
[
clipId
]
->
forceThumbReload
;
}
if
(
roles
.
contains
(
TimelineModel
::
ResourceRole
))
{
int
in
=
getClipPosition
(
clipId
);
emit
invalidateZone
(
in
,
in
+
getClipPlaytime
(
clipId
));
}
notifyChange
(
modelIndex
,
modelIndex
,
roles
);
}
...
...
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