summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorScott <[email protected]>2015-09-15 20:14:30 +0100
committerScott <[email protected]>2015-09-15 20:14:30 +0100
commit8ea1a78f7ac7e4f9bec9cb551b029754c613f642 (patch)
tree66e378622d445ab14f4e3f1b2507a1a69963dc90 /win/CS/HandBrakeWPF/ViewModels
parent9f2ad1f0282529bd08fe3864c9a73f7ed5984762 (diff)
WinGui: Initialise chapters to string.empty if the import file does not contain a name for a given chapter number.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/ChaptersViewModel.cs3
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;
}
}