Commit dd6689f0 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed rare crash when saving the full prefs

parent 8fc6c364
...@@ -1111,11 +1111,14 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -1111,11 +1111,14 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
- (char *)stringValue - (char *)stringValue
{ {
if( [o_combo indexOfSelectedItem] >= 0 ) if( [o_combo indexOfSelectedItem] >= 0 ) {
return strdup( p_item->ppsz_list[[o_combo indexOfSelectedItem]] ); if( p_item->ppsz_list[[o_combo indexOfSelectedItem]] != NULL )
else return strdup( p_item->ppsz_list[[o_combo indexOfSelectedItem]] );
return strdup( [[VLCMain sharedInstance] } else {
delocalizeString: [o_combo stringValue]] ); if( [[VLCMain sharedInstance] delocalizeString: [o_combo stringValue]] != NULL )
return strdup( [[VLCMain sharedInstance] delocalizeString: [o_combo stringValue]] );
}
return NULL;
} }
- (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