summaryrefslogtreecommitdiffstats
path: root/macosx/HBSubtitlesDefaults.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-04-21 13:48:25 +0200
committerDamiano Galassi <[email protected]>2017-04-21 13:50:48 +0200
commit2cda3db7473c5751a9e785269ad43a76bbc34de6 (patch)
treecb6d21aca3679a7d66a39100f4c6eaa8d87eb449 /macosx/HBSubtitlesDefaults.m
parentbc092457f1409c7d014bbdd3fbd65db0340244bf (diff)
MacGui: do not load a job from disk if one or more job objects are missing.
Diffstat (limited to 'macosx/HBSubtitlesDefaults.m')
-rw-r--r--macosx/HBSubtitlesDefaults.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/HBSubtitlesDefaults.m b/macosx/HBSubtitlesDefaults.m
index fa1044a69..c6e8179d7 100644
--- a/macosx/HBSubtitlesDefaults.m
+++ b/macosx/HBSubtitlesDefaults.m
@@ -226,7 +226,7 @@
self = [super init];
decodeInteger(_trackSelectionBehavior);
- decodeObject(_trackSelectionLanguages, NSMutableArray);
+ decodeObjectOrFail(_trackSelectionLanguages, NSMutableArray);
decodeBool(_addForeignAudioSearch);
decodeBool(_addForeignAudioSubtitle);
@@ -237,6 +237,9 @@
decodeBool(_burnInBluraySubtitles);
return self;
+
+fail:
+ return nil;
}