Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 0d63544e authored by David Faure's avatar David Faure

Fix setting MoveAction when reordering favorites

parent ace9cfb4
......@@ -290,7 +290,7 @@ void FavoriteCollectionWidget::dragMoveEvent(QDragMoveEvent *event)
if (event->source() == this) {
if (acceptEvent(event)) {
event->setDropAction(Qt::MoveAction);
event->acceptProposedAction(); // Re-ordering favourites
event->accept(); // Re-ordering favourites
}
} else {
if (acceptEvent(event))
......@@ -301,8 +301,9 @@ void FavoriteCollectionWidget::dragMoveEvent(QDragMoveEvent *event)
void FavoriteCollectionWidget::dropEvent(QDropEvent *event)
{
if (event->source() == this) {
if (acceptEvent(event))
if (acceptEvent(event)) {
QListView::dropEvent(event); // Re-ordering favourites
}
} else {
if (acceptEvent(event)) {
if (dropIndicatorPosition() == QAbstractItemView::OnItem)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment