[vlc-commits] macosx: fixed Reveal-in-Finder when path contains spaces or umlauts

Felix Paul Kühne git at videolan.org
Sat Apr 30 22:36:28 CEST 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Apr 30 22:36:23 2011 +0200| [345e94f12ea9f634810469dc3521acc1092492c3] | committer: Felix Paul Kühne

macosx: fixed Reveal-in-Finder when path contains spaces or umlauts

closes #4721

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

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

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 6fe4338..b3272a0 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -891,7 +891,7 @@
     if(! p_item || !p_item->p_input )
         return;
     
-    char *psz_uri = input_item_GetURI( p_item->p_input );
+    char *psz_uri = decode_URI( input_item_GetURI( p_item->p_input ) );
     if( psz_uri )
         o_mrl = [NSMutableString stringWithUTF8String: psz_uri];
 
@@ -1586,11 +1586,8 @@
 
         /* Refuse to move items that are not in the General Node
            (Service Discovery) */
-        if( ![self isItem: [o_item pointerValue] inNode:
-                        p_playlist->p_local_category checkItemExistence: NO] &&
-            var_CreateGetBool( p_playlist, "media-library" ) &&
-            ![self isItem: [o_item pointerValue] inNode:
-                        p_playlist->p_ml_category checkItemExistence: NO] ||
+        if( (![self isItem: [o_item pointerValue] inNode: p_playlist->p_local_category checkItemExistence: NO] &&
+            var_CreateGetBool( p_playlist, "media-library" ) && ![self isItem: [o_item pointerValue] inNode: p_playlist->p_ml_category checkItemExistence: NO]) ||
             [o_item pointerValue] == p_playlist->p_local_category ||
             [o_item pointerValue] == p_playlist->p_ml_category )
         {



More information about the vlc-commits mailing list