]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/intf.m
MacOS: fixes #3825. Since [af97f24d528acab89969d6541d83f17ce1ecd580] we need to send...
[vlc] / 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