diff --git a/src/playlist.cpp b/src/playlist.cpp index 4fbb0bdea..1e76282fe 100644 --- a/src/playlist.cpp +++ b/src/playlist.cpp @@ -182,11 +182,25 @@ bool Playlist::dropMimeData(const QMimeData* data, Qt::DropAction action, int ro const int start = row == -1 ? items_.count() : row; for (int i=start ; i source_row) + d --; + } + if (pidx.row() + d >= start) + d += source_rows.count(); + + changePersistentIndex(pidx, index(pidx.row() + d, pidx.column(), QModelIndex())); + } } layoutChanged();