[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:24:47 CET 2012


vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Mar 14 20:49:00 2012 +0100| [0919f0cb438fa576a52fa471ea94029330b8a869] | 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
(cherry picked from commit 2709f26e4112d8f1745cec7893efeb45368bb814)

Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

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

 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 28c623d..942e75a 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