Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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
Hide 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)
...
@@ -3015,11 +3015,18 @@ void TimelineModel::requestRemoveFromSelection(int itemId)
{
{
QWriteLocker
locker
(
&
m_lock
);
QWriteLocker
locker
(
&
m_lock
);
TRACE
(
itemId
);
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
();
std
::
unordered_set
<
int
>
selection
=
getCurrentSelection
();
if
(
selection
.
count
(
itemId
)
>
0
)
{
for
(
int
current_itemId
:
all_items
)
{
selection
.
erase
(
itemId
);
if
(
selection
.
count
(
current_itemId
)
>
0
)
{
requestSetSelection
(
selection
);
selection
.
erase
(
current_itemId
);
}
}
}
requestSetSelection
(
selection
);
}
}
bool
TimelineModel
::
requestSetSelection
(
const
std
::
unordered_set
<
int
>
&
ids
)
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