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
5b9ffbc6
Commit
5b9ffbc6
authored
Feb 16, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: prevent items from moving from the ml to the pl accidently
(cherry picked from commit
04c60443
)
parent
023c81ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+10
-3
No files found.
modules/gui/macosx/playlist.m
View file @
5b9ffbc6
...
...
@@ -1553,10 +1553,17 @@
NSArray
*
o_all_items
=
[
o_nodes_array
arrayByAddingObjectsFromArray
:
o_items_array
];
/* If the item is to be dropped as root item of the outline, make it a
child of the
General node.
child of the
respective general node, if is either the pl or the ml
Else, choose the proposed parent as parent. */
if
(
item
==
nil
)
p_new_parent
=
p_playlist
->
p_local_category
;
else
p_new_parent
=
[
item
pointerValue
];
if
(
item
==
nil
)
{
if
([
self
currentPlaylistRoot
]
==
p_playlist
->
p_local_category
||
[
self
currentPlaylistRoot
]
==
p_playlist
->
p_ml_category
)
p_new_parent
=
[
self
currentPlaylistRoot
];
else
p_new_parent
=
p_playlist
->
p_local_category
;
}
else
p_new_parent
=
[
item
pointerValue
];
/* Make sure the proposed parent is a node.
(This should never be true) */
...
...
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