diff options
author | ritsuka <[email protected]> | 2015-01-22 10:30:26 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-01-22 10:30:26 +0000 |
commit | dfa1f8dd4bbaed3fba144a5afead99a1ea102c44 (patch) | |
tree | 9a487f570a21d91cd6d8beeb7ada67e5b99002e8 /macosx/main.mm | |
parent | 1784a808ebe642b54bff0d06abc147226d0287fe (diff) |
MacGui: move the application delegate to its own class. Removed the "Open Source (Title Specific)" menu item, now integrated in the standard open panel.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6784 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/main.mm')
-rw-r--r-- | macosx/main.mm | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/macosx/main.mm b/macosx/main.mm index 1d7d6ed69..961d1fa78 100644 --- a/macosx/main.mm +++ b/macosx/main.mm @@ -5,24 +5,6 @@ It may be used under the terms of the GNU General Public License. */ #import <Cocoa/Cocoa.h> -#include "hb.h" - -static void hb_error_handler(const char *errmsg) -{ - NSString *error = @(errmsg); - - if (error && [[NSUserDefaults standardUserDefaults] boolForKey:@"HBDebugAlert"]) - { - dispatch_async(dispatch_get_main_queue(), ^{ - NSAlert *alert = [[NSAlert alloc] init]; - [alert setMessageText:NSLocalizedString(@"Internal Error.", @"")]; - [alert runModal]; - [alert release]; - }); - } - - fprintf(stderr, "error: %s\n", errmsg); -} int main(int argc, const char **argv) { @@ -39,8 +21,5 @@ int main(int argc, const char **argv) action.sa_handler = SIG_IGN; sigaction(SIGINT, &action, NULL); - hb_global_init(); - hb_register_error_handler(&hb_error_handler); - return NSApplicationMain(argc, argv); } |