Comment 5 for bug 507014

Revision history for this message
isakkarlsson (isak-karlsson) wrote :

=== modified file 'Docky/Docky/Interface/DockDragTracker.cs'
--- Docky/Docky/Interface/DockDragTracker.cs 2010-01-12 04:09:56 +0000
+++ Docky/Docky/Interface/DockDragTracker.cs 2010-01-15 22:47:08 +0000
@@ -43,7 +43,6 @@

   bool drag_known;
   bool drag_data_requested;
- bool drag_is_desktop_file;
   bool repo_mode = false;
   bool drag_disabled = false;
   int marker = 0;
@@ -63,7 +62,6 @@
      drag_known = false;
      drag_data = null;
      drag_data_requested = false;
- drag_is_desktop_file = false;
     }
    }
   }
@@ -265,7 +263,6 @@
      .Where (uri => uri.StartsWith ("file://"));

     drag_data_requested = false;
- drag_is_desktop_file = drag_data.Any (d => d.EndsWith (".desktop"));
     Owner.SetHoveredAcceptsDrop ();
    }

@@ -280,7 +277,7 @@

    AbstractDockItem item = Owner.HoveredItem;

- if (!drag_is_desktop_file && item != null && item.CanAcceptDrop (drag_data))
+ if (item != null && item.CanAcceptDrop (drag_data))
     return true;

    return false;

Here is an patch to fix this "issue".