Changeset 2e0eb5c74b941f18521726572abf74bebc8f59bb

Show
Ignore:
Timestamp:
12/05/07 19:57:10 (2 years ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1178992630 +0000
git-parent:

[a4b948f06ae10f076aa2776dbf8414151eb07f33]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1178992630 +0000
Message:

Mac OS X gui: Prevent a crash when dropping item on the playlist.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/macosx/playlist.m

    rf0dc54b r2e0eb5c  
    14751475    } 
    14761476 
     1477    /* Don't allow on drop on playlist root element's child */ 
     1478    if( !item && index != NSOutlineViewDropOnItemIndex) 
     1479    { 
     1480        vlc_object_release( p_playlist ); 
     1481        return NSDragOperationNone; 
     1482    } 
     1483 
    14771484    /* We refuse to drop an item in anything else than a child of the General 
    14781485       Node. We still accept items that would be root nodes of the outlineview