vlc | branch: master | David Fuhrmann <[email protected]> | Tue Sep 30 
17:16:13 2014 +0200| [a303b7826216f713ec49cf0286f09052fda4d7f3] | committer: 
David Fuhrmann

macosx: add comment for application:openFiles: usage

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a303b7826216f713ec49cf0286f09052fda4d7f3
---

 modules/gui/macosx/intf.m |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 51d438d..12c1496 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -996,6 +996,10 @@ static bool f_appExit = false;
 
 - (void)application:(NSApplication *)o_app openFiles:(NSArray *)o_names
 {
+    // Only add items here which are getting dropped to to the application icon
+    // or are given at startup. If a file is passed via command line, 
libvlccore
+    // will add the item, but cocoa also calls this function. In this case, the
+    // invocation is ignored here.
     if (launched == NO) {
         if (items_at_launch) {
             int items = [o_names count];

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to