diff --git a/src/widgets/itemviews/qtableview.cpp b/src/widgets/itemviews/qtableview.cpp index f0ac4a78fe0..7c407db4646 100644 --- a/src/widgets/itemviews/qtableview.cpp +++ b/src/widgets/itemviews/qtableview.cpp @@ -3165,8 +3165,10 @@ void QTableView::dropEvent(QDropEvent *event) } r = pIndex.row() + 1; // Dropped items are inserted contiguously and in the right order. } - if (dataMoved) + if (dataMoved) { + d->dropEventMoved = true; event->accept(); + } } } }