Commit df4849b5 authored by David Fuhrmann's avatar David Fuhrmann

macosx: do not translate string setting values in advanced prefs

close #6217
parent 385db014
...@@ -941,7 +941,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -941,7 +941,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
/* build the textfield */ /* build the textfield */
if (p_item->value.psz) if (p_item->value.psz)
o_textfieldString = _NS((char *)p_item->value.psz); o_textfieldString = [NSString stringWithCString:p_item->value.psz encoding:NSUTF8StringEncoding];
else else
o_textfieldString = @""; o_textfieldString = @"";
if (p_item->i_type == CONFIG_ITEM_PASSWORD) { if (p_item->i_type == CONFIG_ITEM_PASSWORD) {
...@@ -982,8 +982,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -982,8 +982,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
- (char *)stringValue - (char *)stringValue
{ {
return [[VLCStringUtility sharedInstance] delocalizeString: return strdup([[o_textfield stringValue] UTF8String]);
[o_textfield stringValue]];
} }
- (void)resetValues - (void)resetValues
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment