Commit 68e5d329 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed rare crash when saving the full prefs

parent b114b7e6
...@@ -1124,11 +1124,14 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -1124,11 +1124,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