]> git.sesse.net Git - vlc/commitdiff
MacOS: fixes #3825. Since [af97f24d528acab89969d6541d83f17ce1ecd580] we need to send...
authorSebastien Zwickert <dilaroga@free.fr>
Wed, 30 Jun 2010 11:01:30 +0000 (13:01 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 1 Jul 2010 11:36:15 +0000 (13:36 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/macosx/intf.m

index 93eef2bdeef6965136fdcdd56fdfa8ae31efea80..116023f4f1e41face91816eeddbeabb685204046 100644 (file)
@@ -2925,4 +2925,14 @@ end:
     b_justJumped = NO;
 }
 
+// when user selects the quit menu from dock it sends a terminate:
+// but we need to send a stop: to properly exits libvlc.
+// However, we are not able to change the action-method sent by this standard menu item.
+// thus we override terminat: to send a stop:
+// see [af97f24d528acab89969d6541d83f17ce1ecd580] that introduced the removal of setjmp() and longjmp() 
+- (void)terminate:(id)sender
+{
+    [self stop:sender];
+}
+
 @end