[vlc-commits] macosx: when main window is hidden, let playlist menu item only display the window

David Fuhrmann git at videolan.org
Wed Mar 14 21:23:38 CET 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Mar 14 20:49:00 2012 +0100| [2709f26e4112d8f1745cec7893efeb45368bb814] | committer: David Fuhrmann

macosx: when main window is hidden, let playlist menu item only display the window

Furthermore, this commit fixes close button functionality in dark ui style when video is playing

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

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

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 7ffaf7d..299c9be 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -634,9 +634,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
 
 - (IBAction)togglePlaylist:(id)sender
 {
-    if (![self isVisible])
+    if (![self isVisible] && sender != nil)
     {
         [self makeKeyAndOrderFront: sender];
+        return;
     }
 
     BOOL b_activeVideo = [[VLCMain sharedInstance] activeVideoPlayback];



More information about the vlc-commits mailing list