summaryrefslogtreecommitdiffstats
path: root/macosx/main.mm
diff options
context:
space:
mode:
authorhandbrake <[email protected]>2006-01-14 13:48:48 +0000
committerhandbrake <[email protected]>2006-01-14 13:48:48 +0000
commit9b1acf8cda6d2c5c53000595a6192237e0ed339f (patch)
tree117605ae091e4507d556b1256f7a69fb193da3f6 /macosx/main.mm
parent56bb6ce496b475944bb9577c7586e84be1cb831e (diff)
Update 2006-01-10
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@17 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/main.mm')
-rw-r--r--macosx/main.mm8
1 files changed, 7 insertions, 1 deletions
diff --git a/macosx/main.mm b/macosx/main.mm
index 78f659e03..b07c7f1c8 100644
--- a/macosx/main.mm
+++ b/macosx/main.mm
@@ -1,4 +1,4 @@
-/* $Id: main.mm,v 1.2 2004/10/26 20:49:41 titer Exp $
+/* $Id: main.mm,v 1.3 2005/11/25 15:04:35 titer Exp $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.m0k.org/>.
@@ -6,7 +6,13 @@
#include <Cocoa/Cocoa.h>
+void SigHandler( int signal )
+{
+ [NSApp terminate: NULL];
+}
+
int main( int argc, const char ** argv )
{
+ signal( SIGINT, SigHandler );
return NSApplicationMain( argc, argv );
}