]> git.sesse.net Git - vlc/commitdiff
select first moved item instead of the last one after a drag and drop.
authorBenjamin Pracht <bigben@videolan.org>
Sat, 2 Jul 2005 17:26:51 +0000 (17:26 +0000)
committerBenjamin Pracht <bigben@videolan.org>
Sat, 2 Jul 2005 17:26:51 +0000 (17:26 +0000)
modules/gui/macosx/playlist.m

index edbcbb1908ff8758608665bf8b2087f617b06156..2340e0b69cd7cc3bf1b9ef2abfb01a99996587f4 100644 (file)
@@ -1649,7 +1649,8 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
         }
         [self playlistUpdated];
         i_row = [o_outline_view rowForItem:[o_outline_dict
-            objectForKey:[NSString stringWithFormat: @"%p", p_item]]];
+            objectForKey:[NSString stringWithFormat: @"%p",
+            [[o_all_items objectAtIndex: 0] pointerValue]]]];
 
         if( i_row == -1 )
         {