diff options
author | Scott <[email protected]> | 2015-09-15 20:14:30 +0100 |
---|---|---|
committer | Scott <[email protected]> | 2015-09-15 20:14:30 +0100 |
commit | 8ea1a78f7ac7e4f9bec9cb551b029754c613f642 (patch) | |
tree | 66e378622d445ab14f4e3f1b2507a1a69963dc90 | |
parent | 9f2ad1f0282529bd08fe3864c9a73f7ed5984762 (diff) |
WinGui: Initialise chapters to string.empty if the import file does not contain a name for a given chapter number.
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs index e270e3c15..d1353d029 100644 --- a/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs @@ -186,8 +186,7 @@ namespace HandBrakeWPF.ViewModels foreach (ChapterMarker item in this.Task.ChapterNames)
{
string chapterName;
- chapterMap.TryGetValue(item.ChapterNumber, out chapterName);
- item.ChapterName = chapterName;
+ item.ChapterName = chapterMap.TryGetValue(item.ChapterNumber, out chapterName) ? chapterName : string.Empty;
}
}
|