Commit 85a9ef4f authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: when resetting VLC's config in the prefs panels, also reset the OS X specific NSDefaults

parent 2c6dd263
......@@ -240,8 +240,14 @@ static VLCPrefs *_o_sharedMainInstance = nil;
{
if( i_return == NSAlertAlternateReturn )
{
/* reset VLC's config */
config_ResetAll( p_intf );
[_rootTreeItem resetView];
config_SaveConfigFile( p_intf );
/* reset OS X defaults */
[NSUserDefaults resetStandardUserDefaults];
[[NSUserDefaults standardUserDefaults] synchronize];
}
}
......
......@@ -742,9 +742,14 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na
{
if( i_return == NSAlertAlternateReturn )
{
/* reset VLC's config */
config_ResetAll( p_intf );
[self resetControls];
config_SaveConfigFile( p_intf );
/* reset OS X defaults */
[NSUserDefaults resetStandardUserDefaults];
[[NSUserDefaults standardUserDefaults] synchronize];
}
}
......
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