Skip to content
GitLab
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
1eac6b03
Commit
1eac6b03
authored
Nov 17, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix crash undoing timeremap change after unselecting the clip
parent
42bea5df
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/timeremap.cpp
View file @
1eac6b03
...
...
@@ -1778,6 +1778,7 @@ void TimeRemap::selectedClip(int cid)
connect
(
pCore
->
getMonitor
(
Kdenlive
::
ClipMonitor
),
&
Monitor
::
seekRemap
,
m_view
,
&
RemapView
::
slotSetPosition
,
Qt
::
UniqueConnection
);
std
::
shared_ptr
<
TimelineItemModel
>
model
=
pCore
->
window
()
->
getCurrentTimeline
()
->
model
();
disconnect
(
model
.
get
(),
&
TimelineItemModel
::
dataChanged
,
this
,
&
TimeRemap
::
checkClipUpdate
);
m_cid
=
cid
;
if
(
cid
==
-
1
)
{
m_binId
.
clear
();
m_view
->
setDuration
(
nullptr
,
-
1
);
...
...
@@ -1802,7 +1803,6 @@ void TimeRemap::selectedClip(int cid)
m_lastLength
=
pCore
->
getItemDuration
({
ObjectType
::
TimelineClip
,
cid
});
m_view
->
m_startPos
=
pCore
->
getItemPosition
({
ObjectType
::
TimelineClip
,
cid
});
model
->
requestClipTimeRemap
(
cid
);
m_cid
=
cid
;
connect
(
model
.
get
(),
&
TimelineItemModel
::
dataChanged
,
this
,
&
TimeRemap
::
checkClipUpdate
);
m_view
->
m_maxLength
=
prod
->
get_length
();
m_in
->
setRange
(
0
,
m_view
->
m_maxLength
-
prod
->
get_in
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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