diff --git a/YUViewLib/src/ui/widgets/PlaylistTreeWidget.cpp b/YUViewLib/src/ui/widgets/PlaylistTreeWidget.cpp index 447a9e6da..8eb33e20c 100644 --- a/YUViewLib/src/ui/widgets/PlaylistTreeWidget.cpp +++ b/YUViewLib/src/ui/widgets/PlaylistTreeWidget.cpp @@ -186,6 +186,12 @@ playlistItem *PlaylistTreeWidget::getDropTarget(const QPoint &pos) const void PlaylistTreeWidget::dragMoveEvent(QDragMoveEvent *event) { + if (event->mimeData()->hasUrls()) + { + event->acceptProposedAction(); + return; + } + #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) const auto dropTarget = this->getDropTarget(event->position().toPoint()); #else @@ -194,7 +200,7 @@ void PlaylistTreeWidget::dragMoveEvent(QDragMoveEvent *event) if (!dropTarget) { - event->ignore(); + QTreeWidget::dragMoveEvent(event); return; }