Commit 5404917e 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

(cherry picked from commit 85a9ef4f)
parent 111d6a25
......@@ -238,8 +238,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];
}
}
......
......@@ -774,9 +774,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