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
028d2143
Commit
028d2143
authored
Nov 11, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: do not allow playlist item deletion for sd modules
close #12423
parent
3788f1cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+9
-3
No files found.
modules/gui/macosx/playlist.m
View file @
028d2143
...
...
@@ -961,8 +961,12 @@
{
int
i_count
;
NSIndexSet
*
o_selected_indexes
;
playlist_t
*
p_playlist
;
intf_thread_t
*
p_intf
=
VLCIntf
;
playlist_t
*
p_playlist
=
pl_Get
(
p_intf
);
// check if deletion is allowed
if
([
self
currentPlaylistRoot
]
!=
p_playlist
->
p_local_category
&&
[
self
currentPlaylistRoot
]
!=
p_playlist
->
p_ml_category
)
return
;
o_selected_indexes
=
[
o_outline_view
selectedRowIndexes
];
i_count
=
[
o_selected_indexes
count
];
...
...
@@ -970,7 +974,6 @@
if
(
retainedRowSelection
==
NSNotFound
)
retainedRowSelection
=
0
;
p_playlist
=
pl_Get
(
p_intf
);
NSUInteger
indexes
[
i_count
];
if
(
i_count
==
[
o_outline_view
numberOfRows
])
{
...
...
@@ -1313,8 +1316,11 @@
b_item_sel
=
(
row
!=
-
1
&&
[
o_outline_view
selectedRow
]
!=
-
1
);
b_rows
=
[
o_outline_view
numberOfRows
]
!=
0
;
playlist_t
*
p_playlist
=
pl_Get
(
VLCIntf
);
bool
b_del_allowed
=
[
self
currentPlaylistRoot
]
==
p_playlist
->
p_local_category
||
[
self
currentPlaylistRoot
]
==
p_playlist
->
p_ml_category
;
[
o_mi_play
setEnabled
:
b_item_sel
];
[
o_mi_delete
setEnabled
:
b_item_sel
];
[
o_mi_delete
setEnabled
:
b_item_sel
&&
b_del_allowed
];
[
o_mi_selectall
setEnabled
:
b_rows
];
[
o_mi_info
setEnabled
:
b_item_sel
];
[
o_mi_preparse
setEnabled
:
b_item_sel
];
...
...
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