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
da564a70
Commit
da564a70
authored
Jun 09, 2019
by
Jean-Baptiste Mardelle
Browse files
After undoing deletion, item should not show up as selected
parent
c9d917a4
Pipeline
#4147
passed with stage
in 17 minutes and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/moveableItem.ipp
View file @
da564a70
...
@@ -86,6 +86,9 @@ template <typename Service> void MoveableItem<Service>::setCurrentTrackId(int ti
...
@@ -86,6 +86,9 @@ template <typename Service> void MoveableItem<Service>::setCurrentTrackId(int ti
Q_UNUSED(finalMove);
Q_UNUSED(finalMove);
QWriteLocker locker(&m_lock);
QWriteLocker locker(&m_lock);
m_currentTrackId = tid;
m_currentTrackId = tid;
if (tid == -1) {
selected = false;
}
}
}
template <typename Service> void MoveableItem<Service>::setInOut(int in, int out)
template <typename Service> void MoveableItem<Service>::setInOut(int in, int out)
...
...
src/timeline2/model/timelinefunctions.cpp
View file @
da564a70
...
@@ -169,7 +169,6 @@ bool TimelineFunctions::requestClipCut(const std::shared_ptr<TimelineItemModel>
...
@@ -169,7 +169,6 @@ bool TimelineFunctions::requestClipCut(const std::shared_ptr<TimelineItemModel>
clips
.
insert
(
cid
);
clips
.
insert
(
cid
);
}
}
}
}
timeline
->
requestClearSelection
();
std
::
unordered_set
<
int
>
topElements
;
std
::
unordered_set
<
int
>
topElements
;
std
::
transform
(
clips
.
begin
(),
clips
.
end
(),
std
::
inserter
(
topElements
,
topElements
.
begin
()),
[
&
](
int
id
)
{
return
timeline
->
m_groups
->
getRootId
(
id
);
});
std
::
transform
(
clips
.
begin
(),
clips
.
end
(),
std
::
inserter
(
topElements
,
topElements
.
begin
()),
[
&
](
int
id
)
{
return
timeline
->
m_groups
->
getRootId
(
id
);
});
...
...
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