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
8fd204df
Commit
8fd204df
authored
Apr 26, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: improve handling of module lists within the simple preferenences (close #8440)
parent
c5ca8aa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+9
-6
No files found.
modules/gui/macosx/simple_prefs.m
View file @
8fd204df
...
...
@@ -389,7 +389,7 @@ static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_nam
p_parser
=
p_list
[
i_index
];
if
(
module_provides
(
p_parser
,
p_item
->
psz_type
))
{
[
object
addItemWithTitle
:
[
NSString
stringWithUTF8String
:
_
(
module_GetLongName
(
p_parser
))
?:
""
]];
if
(
p_item
->
value
.
psz
&&
!
strcmp
(
p_item
->
value
.
psz
,
module_get_
object
(
p_parser
)))
if
(
p_item
->
value
.
psz
&&
!
strcmp
(
p_item
->
value
.
psz
,
module_get_
name
(
p_parser
,
false
)))
[
object
selectItem
:
[
object
lastItem
]];
}
}
...
...
@@ -751,16 +751,19 @@ static inline void save_module_list(intf_thread_t * p_intf, id object, const cha
p_parser
=
p_list
[
i_module_index
];
if
(
p_item
->
i_type
==
CONFIG_ITEM_MODULE
&&
module_provides
(
p_parser
,
p_item
->
psz_type
))
{
if
([
objectTitle
isEqualToString
:
_NS
(
module_GetLongName
(
p_parser
))])
{
config_PutPsz
(
p_intf
,
name
,
strdup
(
module_get_object
(
p_parser
)));
if
([
objectTitle
isEqualToString
:
_NS
(
module_GetLongName
(
p_parser
))])
{
config_PutPsz
(
p_intf
,
name
,
strdup
(
module_get_name
(
p_parser
,
false
)));
break
;
}
}
}
module_list_free
(
p_list
);
if
([
objectTitle
isEqualToString
:
_NS
(
"Default"
)])
config_PutPsz
(
p_intf
,
name
,
""
);
if
([
objectTitle
isEqualToString
:
_NS
(
"Default"
)])
{
if
(
!
strcmp
(
name
,
"vout"
))
config_PutPsz
(
p_intf
,
name
,
""
);
else
config_PutPsz
(
p_intf
,
name
,
"none"
);
}
}
-
(
void
)
saveChangedSettings
...
...
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