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]; \
- (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