summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-08-13 10:27:05 +0200
committerDamiano Galassi <[email protected]>2019-08-13 10:27:05 +0200
commitf2a619679551fd988c4e28bf68108f174d64fb3d (patch)
tree3b7b294d44d5afd20a864c2b9d2f3676f7a4749a /macosx/HBJob.m
parent5b3c3c620855130c7bcd47685ad69a765e0cfd7b (diff)
MacGui: convert the last usage of NSDictionary to a proper class, fix external subtitles tracks when sandboxed. Add initial support to the model to store the track title.
Diffstat (limited to 'macosx/HBJob.m')
-rw-r--r--macosx/HBJob.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBJob.m b/macosx/HBJob.m
index d3b4de8b8..ad32a0895 100644
--- a/macosx/HBJob.m
+++ b/macosx/HBJob.m
@@ -371,7 +371,7 @@ NSString *HBChaptersChangedNotification = @"HBChaptersChangedNotification";
- (void)encodeWithCoder:(NSCoder *)coder
{
- [coder encodeInt:4 forKey:@"HBJobVersion"];
+ [coder encodeInt:5 forKey:@"HBJobVersion"];
encodeObject(_name);
encodeObject(_presetName);
@@ -424,7 +424,7 @@ NSString *HBChaptersChangedNotification = @"HBChaptersChangedNotification";
{
int version = [decoder decodeIntForKey:@"HBJobVersion"];
- if (version == 4 && (self = [super init]))
+ if (version == 5 && (self = [super init]))
{
decodeObjectOrFail(_name, NSString);
decodeObjectOrFail(_presetName, NSString);