Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Heiko Becker
kdenlive
Commits
a972c153
Commit
a972c153
authored
Apr 10, 2019
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deselecting clips in timeline with shift
parent
6411cad7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/timeline2/model/timelinemodel.cpp
src/timeline2/model/timelinemodel.cpp
+10
-3
No files found.
src/timeline2/model/timelinemodel.cpp
View file @
a972c153
...
...
@@ -3015,11 +3015,18 @@ void TimelineModel::requestRemoveFromSelection(int itemId)
{
QWriteLocker
locker
(
&
m_lock
);
TRACE
(
itemId
);
std
::
unordered_set
<
int
>
all_items
=
{
itemId
};
int
parentGroup
=
m_groups
->
getDirectAncestor
(
itemId
);
if
(
parentGroup
>
-
1
&&
m_groups
->
getType
(
parentGroup
)
!=
GroupType
::
Selection
)
{
all_items
=
m_groups
->
getLeaves
(
parentGroup
);
}
std
::
unordered_set
<
int
>
selection
=
getCurrentSelection
();
if
(
selection
.
cou
nt
(
itemId
)
>
0
)
{
selection
.
erase
(
itemId
);
requestSetSelection
(
selection
);
for
(
int
curre
nt
_
itemId
:
all_items
)
{
if
(
selection
.
count
(
current_itemId
)
>
0
)
{
selection
.
erase
(
current_itemId
);
}
}
requestSetSelection
(
selection
);
}
bool
TimelineModel
::
requestSetSelection
(
const
std
::
unordered_set
<
int
>
&
ids
)
...
...
Write
Preview
Markdown
is supported
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