summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-05-31 11:36:19 +0200
committerDamiano Galassi <[email protected]>2017-05-31 11:36:19 +0200
commit1f2769e451fba3881067ca5268330fa43789ceb1 (patch)
treea8f0c6fd3977e501d9655e6978e7f8faf811fa4d
parenta3d93aa2e1c285e03d6b8ceecad7d288e9369b1f (diff)
MacGui: do not load an HBJob is there is no file URL.
-rw-r--r--macosx/HBJob.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBJob.m b/macosx/HBJob.m
index 5d01987b6..35015f511 100644
--- a/macosx/HBJob.m
+++ b/macosx/HBJob.m
@@ -392,7 +392,7 @@ NSString *HBChaptersChangedNotification = @"HBChaptersChangedNotification";
if (!_fileURL)
{
- decodeObject(_fileURL, NSURL);
+ decodeObjectOrFail(_fileURL, NSURL);
}
_outputURLFolderBookmark = [HBCodingUtilities decodeObjectOfClass:[NSData class] forKey:@"_outputURLFolderBookmark" decoder:decoder];
@@ -406,7 +406,7 @@ NSString *HBChaptersChangedNotification = @"HBChaptersChangedNotification";
decodeObject(_outputURL, NSURL);
}
#else
- decodeObject(_fileURL, NSURL);
+ decodeObjectOrFail(_fileURL, NSURL);
decodeObject(_outputURL, NSURL);
#endif