summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-09 12:34:42 +0200
committerDamiano Galassi <[email protected]>2015-10-09 12:34:42 +0200
commitf6920d0dbbc70e16cd016ab9d809532fa5db5521 (patch)
treed62071ed285145a946e20614bed73f44a9f8731b /macosx/HBJob.m
parentf9c5593978ccc7f214dff75f01f59ebda91d8102 (diff)
MacGui: add a duration column to the chapters table
Diffstat (limited to 'macosx/HBJob.m')
-rw-r--r--macosx/HBJob.m6
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;
}