diff options
author | ritsuka <[email protected]> | 2015-01-09 08:12:28 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-01-09 08:12:28 +0000 |
commit | c3b7d0bd1b901c17a345123b7c640eabf69f6a90 (patch) | |
tree | 1a565255bd3b0785b7493a6e6e13315acf0001b1 /macosx/main.mm | |
parent | ac06ddcb7419443aee3fecd5ff10b1f3e4af622e (diff) |
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
Diffstat (limited to 'macosx/main.mm')
-rw-r--r-- | macosx/main.mm | 6 |
1 files changed, 5 insertions, 1 deletions
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]; }); |