mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Merge branch 'release/20.04'
This commit is contained in:
commit
975adedb59
|
@ -929,8 +929,13 @@ bool KItemListController::dragMoveEvent(QGraphicsSceneDragDropEvent* event, cons
|
||||||
m_view->hideDropIndicator();
|
m_view->hideDropIndicator();
|
||||||
}
|
}
|
||||||
|
|
||||||
event->setAccepted(!DragAndDropHelper::urlListMatchesUrl(event->mimeData()->urls(), hoveredDir));
|
if (DragAndDropHelper::urlListMatchesUrl(event->mimeData()->urls(), hoveredDir)) {
|
||||||
|
event->setDropAction(Qt::IgnoreAction);
|
||||||
|
event->ignore();
|
||||||
|
} else {
|
||||||
|
event->setDropAction(event->proposedAction());
|
||||||
|
event->accept();
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue