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]; \
- (char *)stringValue
{
if( [o_combo indexOfSelectedItem] >= 0 )
return strdup( p_item->ppsz_list[[o_combo indexOfSelectedItem]] );
else
return strdup( [[VLCMain sharedInstance]
delocalizeString: [o_combo stringValue]] );
if( [o_combo indexOfSelectedItem] >= 0 ) {
if( p_item->ppsz_list[[o_combo indexOfSelectedItem]] != NULL )
return strdup( p_item->ppsz_list[[o_combo indexOfSelectedItem]] );
} else {
if( [[VLCMain sharedInstance] delocalizeString: [o_combo stringValue]] != NULL )
return strdup( [[VLCMain sharedInstance] delocalizeString: [o_combo stringValue]] );
}
return NULL;
}
- (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