From c3b7d0bd1b901c17a345123b7c640eabf69f6a90 Mon Sep 17 00:00:00 2001 From: ritsuka Date: Fri, 9 Jan 2015 08:12:28 +0000 Subject: MacGui: fix the error alert, the error message wasn't captured properly by the block. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6700 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/main.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'macosx/main.mm') diff --git a/macosx/main.mm b/macosx/main.mm index 30ae392ae..225c9151c 100644 --- a/macosx/main.mm +++ b/macosx/main.mm @@ -9,10 +9,14 @@ static void hb_error_handler(const char *errmsg) { + NSString *error = @(errmsg); dispatch_async(dispatch_get_main_queue(), ^{ NSAlert *alert = [[NSAlert alloc] init]; [alert setMessageText:NSLocalizedString(@"Internal Error.", @"")]; - [alert setInformativeText:@(errmsg)]; + if (error) + { + [alert setInformativeText:error]; + } [alert runModal]; [alert release]; }); -- cgit v1.2.3