diff options
author | Damiano Galassi <[email protected]> | 2017-04-21 13:48:25 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2017-04-21 13:50:48 +0200 |
commit | 2cda3db7473c5751a9e785269ad43a76bbc34de6 (patch) | |
tree | cb6d21aca3679a7d66a39100f4c6eaa8d87eb449 /macosx/HBAudio.m | |
parent | bc092457f1409c7d014bbdd3fbd65db0340244bf (diff) |
MacGui: do not load a job from disk if one or more job objects are missing.
Diffstat (limited to 'macosx/HBAudio.m')
-rw-r--r-- | macosx/HBAudio.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/HBAudio.m b/macosx/HBAudio.m index f7116d8a3..cb0c5a294 100644 --- a/macosx/HBAudio.m +++ b/macosx/HBAudio.m @@ -286,9 +286,12 @@ NSString *HBAudioChangedNotification = @"HBAudioChangedNotification"; track.delegate = self; } - decodeObject(_defaults, HBAudioDefaults); + decodeObjectOrFail(_defaults, HBAudioDefaults); return self; + +fail: + return nil; } #pragma mark - Presets |