Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
926bbf14
Commit
926bbf14
authored
Jun 18, 2010
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: don't do playlist_model recursive remove as core signals for those anyway
parent
65bdaa29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+2
-6
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
926bbf14
...
...
@@ -779,10 +779,8 @@ void PLModel::updateTreeItem( PLItem *item )
/************************* Actions ******************************/
/**
* 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?
* Lets not worry about nodes children, we do refersh anyway when
* core tells that playlist has changed, should give some more speed
*/
void
PLModel
::
doDelete
(
QModelIndexList
selected
)
{
...
...
@@ -796,8 +794,6 @@ 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