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
8c951668
Commit
8c951668
authored
Mar 28, 2019
by
Nicolas Carion
Browse files
remove useless local variable
parent
c7376fa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinemodel.cpp
View file @
8c951668
...
...
@@ -528,12 +528,11 @@ bool TimelineModel::requestClipMove(int clipId, int trackId, int position, bool
bool
ok
=
true
;
int
old_trackId
=
getClipTrackId
(
clipId
);
bool
notifyViewOnly
=
false
;
bool
localUpdateView
=
updateView
;
// qDebug()<<"MOVING CLIP FROM: "<<old_trackId<<" == "<<trackId;
Fun
update_model
=
[]()
{
return
true
;
};
if
(
old_trackId
==
trackId
)
{
// Move on same track, simply inform the view
localU
pdateView
=
false
;
u
pdateView
=
false
;
notifyViewOnly
=
true
;
update_model
=
[
clipId
,
this
,
invalidateTimeline
]()
{
QModelIndex
modelIndex
=
makeClipIndexFromID
(
clipId
);
...
...
@@ -549,14 +548,14 @@ bool TimelineModel::requestClipMove(int clipId, int trackId, int position, bool
if
(
notifyViewOnly
)
{
PUSH_LAMBDA
(
update_model
,
local_undo
);
}
ok
=
getTrackById
(
old_trackId
)
->
requestClipDeletion
(
clipId
,
localU
pdateView
,
invalidateTimeline
,
local_undo
,
local_redo
);
ok
=
getTrackById
(
old_trackId
)
->
requestClipDeletion
(
clipId
,
u
pdateView
,
invalidateTimeline
,
local_undo
,
local_redo
);
if
(
!
ok
)
{
bool
undone
=
local_undo
();
Q_ASSERT
(
undone
);
return
false
;
}
}
ok
=
ok
&
getTrackById
(
trackId
)
->
requestClipInsertion
(
clipId
,
position
,
localU
pdateView
,
invalidateTimeline
,
local_undo
,
local_redo
);
ok
=
ok
&
getTrackById
(
trackId
)
->
requestClipInsertion
(
clipId
,
position
,
u
pdateView
,
invalidateTimeline
,
local_undo
,
local_redo
);
if
(
!
ok
)
{
qDebug
()
<<
"-------------
\n\n
INSERTION FAILED, REVERTING
\n\n
-------------------"
;
bool
undone
=
local_undo
();
...
...
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