mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 09:50:12 +00:00
Merge branch 'Applications/19.04'
This commit is contained in:
commit
1775002247
|
@ -353,7 +353,10 @@ void PlacesItemModel::dropMimeDataBefore(int index, const QMimeData* mimeData)
|
|||
int oldIndex;
|
||||
stream >> oldIndex;
|
||||
|
||||
m_sourceModel->movePlace(oldIndex, index);
|
||||
QModelIndex sourceIndex = mapToSource(index);
|
||||
QModelIndex oldSourceIndex = mapToSource(oldIndex);
|
||||
|
||||
m_sourceModel->movePlace(oldSourceIndex.row(), sourceIndex.row());
|
||||
} else if (mimeData->hasFormat(QStringLiteral("text/uri-list"))) {
|
||||
// One or more items must be added to the model
|
||||
const QList<QUrl> urls = KUrlMimeData::urlsFromMimeData(mimeData);
|
||||
|
|
Loading…
Reference in a new issue