CCMAIL: peter.penz@gmx.at
svn path=/trunk/KDE/kdebase/apps/; revision=750173
}
}
setDirtyRegion(m_dropRect);
+
+ if (event->mimeData()->hasUrls()) {
+ // accept url drops, independently from the destination item
+ event->acceptProposedAction();
+ }
}
void DolphinColumnWidget::dropEvent(QDropEvent* event)
}
setDirtyRegion(m_dropRect);
}
+
+ if (event->mimeData()->hasUrls()) {
+ // accept url drops, independently from the destination item
+ event->acceptProposedAction();
+ }
}
void DolphinDetailsView::dropEvent(QDropEvent* 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()) {