diff options
author | sr55 <[email protected]> | 2012-03-18 14:36:15 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-03-18 14:36:15 +0000 |
commit | 5cc5a0f9aef4339312d474399207b71cb815b9ff (patch) | |
tree | 97a3225a8c4f0bc6677053d3db472b13cba70e60 /win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs | |
parent | 49020e219f4c3db356b599750f053520b5f089b6 (diff) |
WinGui: (WPF) Numerous fixes / UI tweaks.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4511 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs index 264643847..6a2e64ac8 100644 --- a/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs @@ -204,7 +204,11 @@ namespace HandBrakeWPF.ViewModels {
this.Task = task;
this.NotifyOfPropertyChange(() => this.Task);
- this.IncludeChapterMarkers = preset.Task.IncludeChapterMarkers;
+
+ if (preset != null)
+ {
+ this.IncludeChapterMarkers = preset.Task.IncludeChapterMarkers;
+ }
this.SetSourceChapters(title.Chapters);
}
|