[vlc-commits] macosx: do not translate string setting values in advanced prefs
David Fuhrmann
git at videolan.org
Sat Apr 20 10:19:13 CEST 2013
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sat Apr 20 10:14:20 2013 +0200| [df4849b59ad4ace4cb82e59a17ec0dc26af2f58d] | committer: David Fuhrmann
macosx: do not translate string setting values in advanced prefs
close #6217
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df4849b59ad4ace4cb82e59a17ec0dc26af2f58d
---
modules/gui/macosx/prefs_widgets.m | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/gui/macosx/prefs_widgets.m b/modules/gui/macosx/prefs_widgets.m
index 0820f86..cb2b152 100644
--- a/modules/gui/macosx/prefs_widgets.m
+++ b/modules/gui/macosx/prefs_widgets.m
@@ -941,7 +941,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
/* build the textfield */
if (p_item->value.psz)
- o_textfieldString = _NS((char *)p_item->value.psz);
+ o_textfieldString = [NSString stringWithCString:p_item->value.psz encoding:NSUTF8StringEncoding];
else
o_textfieldString = @"";
if (p_item->i_type == CONFIG_ITEM_PASSWORD) {
@@ -982,8 +982,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
- (char *)stringValue
{
- return [[VLCStringUtility sharedInstance] delocalizeString:
- [o_textfield stringValue]];
+ return strdup([[o_textfield stringValue] UTF8String]);
}
- (void)resetValues
More information about the vlc-commits
mailing list