* modules/gui/macosx/playlist.m:
authorDerk-Jan Hartman <hartman@videolan.org>
Mon, 17 Mar 2003 23:13:06 +0000 (23:13 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 17 Mar 2003 23:13:06 +0000 (23:13 +0000)
  - fixed a cosmetic issue.

modules/gui/macosx/playlist.m

index 4864350..abf2c2b 100644 (file)
@@ -2,7 +2,7 @@
  * playlist.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: playlist.m,v 1.16 2003/03/17 21:47:21 hartman Exp $
+ * $Id: playlist.m,v 1.17 2003/03/17 23:13:06 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Derk-Jan Hartman <thedj@users.sourceforge.net>
 {
     if ( o_operation == NSTableViewDropAbove )
     {
-        if ( i_row != i_moveRow && i_moveRow >= 0 )
+        if ( i_moveRow >= 0 )
         {
-            return NSDragOperationMove;
+            if ( i_row != i_moveRow )
+            {
+                return NSDragOperationMove;
+            }
+            /* what if in the previous run, the row wasn't actually moved? 
+               then we can't drop new files on this location */
+            return NSDragOperationNone;
         }
-        return NSDragOperationLink;
+        return NSDragOperationGeneric;
     }
     return NSDragOperationNone;
 }