[vlc-commits] macosx: fixed 'Open File...' in the subtitles sub menu (close #6352)

Felix Paul Kühne git at videolan.org
Sun Mar 11 16:09:15 CET 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Mar 11 16:08:19 2012 +0100| [71cb14787bda31448a79b993ad77688786681105] | committer: Felix Paul Kühne

macosx: fixed 'Open File...' in the subtitles sub menu (close #6352)
(cherry picked from commit 542b07d310adad4692455396ffa5d52f3fe666b7)

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

 modules/gui/macosx/MainMenu.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/MainMenu.m b/modules/gui/macosx/MainMenu.m
index a690536..a811e11 100644
--- a/modules/gui/macosx/MainMenu.m
+++ b/modules/gui/macosx/MainMenu.m
@@ -1042,7 +1042,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
     {
         NSMenuItem * o_lmi_tmp;
         o_lmi_tmp = [o_menu addItemWithTitle: _NS("Open File...") action: @selector(addSubtitleFile:) keyEquivalent: @""];
-        [o_lmi_tmp setTarget: self];
+        [o_lmi_tmp setTarget: [[VLCMain sharedInstance] controls]];
         [o_lmi_tmp setEnabled: YES];
         [o_parent setEnabled: YES];
         [o_menu addItem: [NSMenuItem separatorItem]];



More information about the vlc-commits mailing list