[vlc-devel] commit: macosx: Don't allow playlist or media list draging. (Pierre d' Herbemont )
git version control
git at videolan.org
Sun Aug 31 10:56:53 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Aug 30 19:47:10 2008 +0200| [54166d1bb2912fe55d88b4becccb33e50785249d] | committer: Pierre d'Herbemont
macosx: Don't allow playlist or media list draging.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=54166d1bb2912fe55d88b4becccb33e50785249d
---
modules/gui/macosx/playlist.m | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index a03cbd1..d9a77a8 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1440,9 +1440,11 @@
(Service Discovery) */
if( ![self isItem: [o_item pointerValue] inNode:
p_playlist->p_local_category checkItemExistence: NO] &&
- ( var_CreateGetBool( p_playlist, "media-library" ) &&
+ var_CreateGetBool( p_playlist, "media-library" ) &&
![self isItem: [o_item pointerValue] inNode:
- p_playlist->p_ml_category checkItemExistence: NO]) )
+ p_playlist->p_ml_category checkItemExistence: NO] ||
+ [o_item pointerValue] == p_playlist->p_local_category ||
+ [o_item pointerValue] == p_playlist->p_ml_category )
{
vlc_object_release(p_playlist);
return NO;
More information about the vlc-devel
mailing list