Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
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
videolan
vlc
Commits
c80a170a
Commit
c80a170a
authored
Jun 20, 2010
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Qt4: don't do playlist_model recursive remove as core signals for those anyway"
This reverts commit
926bbf14
.
parent
d45df2a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+6
-2
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
c80a170a
...
...
@@ -779,8 +779,10 @@ void PLModel::updateTreeItem( PLItem *item )
/************************* Actions ******************************/
/**
* Lets not worry about nodes children, we do refersh anyway when
* core tells that playlist has changed, should give some more speed
* Deletion, here we have to do a ugly slow hack as we retrieve the full
* list of indexes to delete at once: when we delete a node and all of
* its children, we need to update the list.
* Todo: investigate whethere we can use ranges to be sure to delete all items?
*/
void
PLModel
::
doDelete
(
QModelIndexList
selected
)
{
...
...
@@ -794,6 +796,8 @@ void PLModel::doDelete( QModelIndexList selected )
if
(
index
.
column
()
!=
0
)
continue
;
PLItem
*
item
=
getItem
(
index
);
if
(
item
->
children
.
size
()
)
recurseDelete
(
item
->
children
,
&
selected
);
PL_LOCK
;
playlist_DeleteFromInput
(
p_playlist
,
item
->
p_input
,
pl_Locked
);
...
...
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