Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
7cf5fbe8
Commit
7cf5fbe8
authored
Nov 29, 2006
by
Marian Durkovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forwardport [18136]: Fixed RecursiveDeleteSelection() to prevent destroying the
whole playlist
parent
979719c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
modules/gui/wxwidgets/dialogs/playlist.cpp
modules/gui/wxwidgets/dialogs/playlist.cpp
+14
-7
No files found.
modules/gui/wxwidgets/dialogs/playlist.cpp
View file @
7cf5fbe8
...
...
@@ -1059,16 +1059,23 @@ void Playlist::RecursiveDeleteSelection( wxTreeItemId root )
{
wxTreeItemIdValue
cookie
;
wxTreeItemId
child
=
treectrl
->
GetFirstChild
(
root
,
cookie
);
wxTreeItemId
nextchild
;
bool
childIsSelected
=
FALSE
;
bool
nextchildIsSelected
=
FALSE
;
if
(
child
.
IsOk
()
)
childIsSelected
=
treectrl
->
IsSelected
(
child
);
while
(
child
.
IsOk
()
)
{
if
(
treectrl
->
ItemHasChildren
(
child
)
)
{
RecursiveDeleteSelection
(
child
);
if
(
treectrl
->
IsSelected
(
child
)
)
DeleteTreeItem
(
child
);
}
else
if
(
treectrl
->
IsSelected
(
child
)
)
nextchild
=
treectrl
->
GetNextChild
(
root
,
cookie
);
if
(
nextchild
.
IsOk
()
)
nextchildIsSelected
=
treectrl
->
IsSelected
(
nextchild
);
if
(
childIsSelected
)
DeleteTreeItem
(
child
);
child
=
treectrl
->
GetNextChild
(
root
,
cookie
);
else
if
(
treectrl
->
ItemHasChildren
(
child
)
)
RecursiveDeleteSelection
(
child
);
child
=
nextchild
;
childIsSelected
=
nextchildIsSelected
;
}
}
...
...
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