From 80362d08a185f397e09326ddc99e036a46ce8350 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 19 Aug 2016 09:34:52 +0200 Subject: [PATCH] Fix some more display names. --- Classes/SBDocument.m | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Classes/SBDocument.m b/Classes/SBDocument.m index 6d9269b..800a62f 100644 --- a/Classes/SBDocument.m +++ b/Classes/SBDocument.m @@ -231,21 +231,25 @@ { void (^modifiedCompletionhandler)(NSError * _Nullable) = ^void(NSError * _Nullable error) { MP42File *reloadedFile = nil; + NSError *reloadError; if (error == nil) { - reloadedFile = [[MP42File alloc] initWithURL:[NSURL fileURLWithPath:url.path] error:NULL]; + reloadedFile = [[MP42File alloc] initWithURL:[NSURL fileURLWithPath:url.path] error:&reloadError]; } + [self endProgressSheet]; if (reloadedFile) { self.mp4 = reloadedFile; [self.tracksTable reloadData]; [self reloadPropertyView]; - } - [self endProgressSheet]; - completionHandler(error); + completionHandler(error); + } + else { + completionHandler(reloadError); + } }; [self showProgressSheet];