]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphiniconsview.cpp
So I guess that is the behaviour that we really want :)
[dolphin.git] / src / dolphiniconsview.cpp
index 05b8ed9cc16a88bb468ecb3c37784a0115841979..de0aaec97c1ed7391982a236efa4a117d3eb95f6 100644 (file)
@@ -227,8 +227,10 @@ void DolphinIconsView::dragMoveEvent(QDragMoveEvent* event)
     m_dropRect.setSize(QSize()); // set as invalid
     if (index.isValid()) {
         const KFileItem item = itemForIndex(index);
-        if (!item.isNull()) {
+        if (!item.isNull() && item.isDir()) {
             m_dropRect = visualRect(index);
+        } else {
+            m_dropRect.setSize(QSize()); // set as invalid
         }
     }
     if (event->mimeData()->hasUrls()) {