]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Replace the list with the simplified list, instead of concatenate.
authorAntonio Prcela <antonio.prcela@gmail.com>
Mon, 4 May 2020 13:51:34 +0000 (07:51 -0600)
committerNate Graham <nate@kde.org>
Mon, 4 May 2020 14:00:07 +0000 (08:00 -0600)
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

src/views/dolphinview.cpp

index a0dd0327b9ad461530953d6261b74a7c527b0f72..f0dc17837a5ddcad2bb3a18a50aa5bb19382fb1e 100644 (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);
     }
 }