diff options
author | Damiano Galassi <[email protected]> | 2015-10-09 12:34:42 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2015-10-09 12:34:42 +0200 |
commit | f6920d0dbbc70e16cd016ab9d809532fa5db5521 (patch) | |
tree | d62071ed285145a946e20614bed73f44a9f8731b /macosx/HBJob.m | |
parent | f9c5593978ccc7f214dff75f01f59ebda91d8102 (diff) |
MacGui: add a duration column to the chapters table
Diffstat (limited to 'macosx/HBJob.m')
-rw-r--r-- | macosx/HBJob.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBJob.m b/macosx/HBJob.m index ff7a7b5ad..69c649fd1 100644 --- a/macosx/HBJob.m +++ b/macosx/HBJob.m @@ -50,7 +50,7 @@ NSString *HBChaptersChangedNotification = @"HBChaptersChangedNotification"; _audio = [[HBAudio alloc] initWithTitle:title]; _subtitles = [[HBSubtitles alloc] initWithTitle:title]; - _chapterTitles = [title.chapters mutableCopy]; + _chapterTitles = [title.chapters copy]; _uuid = [[NSUUID UUID] UUIDString]; @@ -170,7 +170,7 @@ NSString *HBChaptersChangedNotification = @"HBChaptersChangedNotification"; copy->_subtitles = [_subtitles copy]; copy->_chaptersEnabled = _chaptersEnabled; - copy->_chapterTitles = [[NSMutableArray alloc] initWithArray:_chapterTitles copyItems:YES]; + copy->_chapterTitles = [[NSArray alloc] initWithArray:_chapterTitles copyItems:YES]; } return copy; @@ -244,7 +244,7 @@ NSString *HBChaptersChangedNotification = @"HBChaptersChangedNotification"; decodeObject(_subtitles, HBSubtitles); decodeBool(_chaptersEnabled); - decodeObject(_chapterTitles, NSMutableArray); + decodeObject(_chapterTitles, NSArray); return self; } |