Replace the list with the simplified list, instead of concatenate.

Summary: Replace the list m_selectedUrls with a simplified list, instead of concatenating the simplified list to the current one.

Reviewers: dfaure, meven

Reviewed By: dfaure

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29399
This commit is contained in:
Antonio Prcela 2020-05-04 07:51:34 -06:00 committed by Nate Graham
parent e6ea3ab4c4
commit ddcca5fb91

View file

@ -1200,7 +1200,7 @@ void DolphinView::slotPasteJobResult(KJob *job)
emit errorMessage(job->errorString());
}
if (!m_selectedUrls.isEmpty()) {
m_selectedUrls << KDirModel::simplifiedUrlList(m_selectedUrls);
m_selectedUrls = KDirModel::simplifiedUrlList(m_selectedUrls);
}
}