[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:32:47 CEST 2011
vlc/vlc-1.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Apr 30 22:32:43 2011 +0200| [5ce30b7c0abab7b53d93a9f3a6a8c57d16781bcb] | 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/vlc-1.1.git/?a=commit;h=5ce30b7c0abab7b53d93a9f3a6a8c57d16781bcb
---
modules/gui/macosx/playlist.m | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 1c19f74..d544eb0 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -706,7 +706,7 @@
inNode: (playlist_item_t *)p_node
checkItemExistence:(BOOL)b_check
{
- [self isItem:p_item inNode:p_node checkItemExistence:b_check locked:NO];
+ return [self isItem:p_item inNode:p_node checkItemExistence:b_check locked:NO];
}
/* This method is useful for instance to remove the selected children of an
@@ -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