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
cfaaf916
Commit
cfaaf916
authored
Jun 11, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: sort items before adding to playlist over dock icon
close #4358
parent
13e2c3bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+4
-3
No files found.
modules/gui/macosx/intf.m
View file @
cfaaf916
...
@@ -929,10 +929,11 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -929,10 +929,11 @@ static VLCMain *_o_sharedMainInstance = nil;
}
}
free
(
psz_uri
);
free
(
psz_uri
);
NSMutableArray
*
o_result
=
[
NSMutableArray
arrayWithCapacity
:
[
o_names
count
]];
NSArray
*
o_sorted_names
=
[
o_names
sortedArrayUsingSelector
:
@selector
(
caseInsensitiveCompare
:)];
for
(
int
i
=
0
;
i
<
[
o_names
count
];
i
++
)
NSMutableArray
*
o_result
=
[
NSMutableArray
arrayWithCapacity
:
[
o_sorted_names
count
]];
for
(
int
i
=
0
;
i
<
[
o_sorted_names
count
];
i
++
)
{
{
psz_uri
=
make_URI
([[
o_names
objectAtIndex
:
i
]
UTF8String
],
"file"
);
psz_uri
=
make_URI
([[
o_
sorted_
names
objectAtIndex
:
i
]
UTF8String
],
"file"
);
if
(
!
psz_uri
)
if
(
!
psz_uri
)
return
NO
;
return
NO
;
...
...
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