[vlc-devel] commit: macosx playlist: fix an unreachable update of the Media Info panel (Derk-Jan Hartman )

git version control git at videolan.org
Wed May 27 15:26:25 CEST 2009


vlc | branch: 1.0-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Wed May 27 15:26:00 2009 +0200| [cbccd7297c241830e796f0f239b4b90d19c16c75] | committer: Derk-Jan Hartman 

macosx playlist: fix an unreachable update of the Media Info panel

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

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

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index d777d4a..27c8097 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -525,6 +525,9 @@
         /* update the state of our Reveal-in-Finder menu items */
         NSMutableString *o_mrl;
         char *psz_uri = input_item_GetURI( p_item->p_input );
+
+        [o_mi_revealInFinder setEnabled: NO];
+        [o_mm_mi_revealInFinder setEnabled: NO];
         if( psz_uri )
         {
             o_mrl = [NSMutableString stringWithUTF8String: psz_uri];
@@ -538,11 +541,8 @@
             {
                 [o_mi_revealInFinder setEnabled: YES];
                 [o_mm_mi_revealInFinder setEnabled: YES];
-                return;
             }
         }
-        [o_mi_revealInFinder setEnabled: NO];
-        [o_mm_mi_revealInFinder setEnabled: NO];
 
         if( [[VLCMain sharedInstance] isPlaylistCollapsed] == NO )
         {




More information about the vlc-devel mailing list