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
9a918976
Commit
9a918976
authored
Mar 25, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix crash on zone undo
parent
92f03c42
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/timelinecontroller.cpp
View file @
9a918976
...
...
@@ -1148,15 +1148,11 @@ void TimelineController::updateZone(const QPoint oldZone, const QPoint newZone,
std
::
function
<
bool
(
void
)
>
undo
=
[]()
{
return
true
;
};
std
::
function
<
bool
(
void
)
>
redo
=
[]()
{
return
true
;
};
Fun
undo_zone
=
[
this
,
oldZone
]()
{
m_zone
=
oldZone
;
emit
zoneChanged
();
emit
zoneMoved
(
oldZone
);
setZone
(
oldZone
,
false
);
return
true
;
};
Fun
redo_zone
=
[
this
,
newZone
]()
{
m_zone
=
newZone
;
emit
zoneChanged
();
emit
zoneMoved
(
newZone
);
setZone
(
newZone
,
false
);
return
true
;
};
redo_zone
();
...
...
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