diff options
author | sr55 <[email protected]> | 2019-02-19 21:56:10 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-02-19 21:57:23 +0000 |
commit | c99462789138159261c4d8a09cb8bb90d119aace (patch) | |
tree | 452055c5a2c74f010a505f563292ee0fbf0ecbe3 /win/CS/HandBrakeWPF/Services | |
parent | 21fd957bb57782db35243d5f44e45e52fd595e4b (diff) |
WinGui: Fix a crash for new installs or users upgrading from older versions. Fixes #1916
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/UserSettingService.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/UserSettingService.cs b/win/CS/HandBrakeWPF/Services/UserSettingService.cs index 836605a2d..8583787df 100644 --- a/win/CS/HandBrakeWPF/Services/UserSettingService.cs +++ b/win/CS/HandBrakeWPF/Services/UserSettingService.cs @@ -198,6 +198,10 @@ namespace HandBrakeWPF.Services this.userSettings = deserialisedSettings;
}
}
+ else
+ {
+ this.userSettings = new Dictionary<string, object>();
+ }
// Add any missing / new settings
SerializableDictionary<string, object> defaults = this.GetDefaults();
|