diff options
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs b/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs index c36b5ec49..9419efefc 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs @@ -153,6 +153,15 @@ namespace HandBrake.ApplicationServices.Services }
catch (Exception exc)
{
+ this.userSettings = this.GetDefaults();
+ try
+ {
+ this.Save();
+ }
+ catch (Exception)
+ {
+ }
+
throw new GeneralApplicationException(
"HandBrake has detected corruption in the settings file. User settings will now be reset to defaults.",
"Please restart HandBrake before continuing.",
|