D29006: Allow to copy or move selection to the other split view

David Faure noreply at phabricator.kde.org
Sat May 2 11:42:49 BST 2020


dfaure requested changes to this revision.
dfaure added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> dolphinview.cpp:1222
>      if (!m_selectedUrls.isEmpty()) {
>          m_selectedUrls << KDirModel::simplifiedUrlList(m_selectedUrls);
>      }

This line of code (from me, it turns out) is bogus, it should say `=` instead of `<<`.
We want to replace the list with the simplified list, not concatenate the two.

And m_selectedUrls needs to contain the new URLs, just like we do when pasting.

The solution I have in mind for that is to connect to CopyJob::slotCopyingDone and grab the "to" argument.

[discussed on IRC, but writing here for the record, and in case someone wonders why this << gets modified]

REPOSITORY
  R318 Dolphin

REVISION DETAIL
  https://phabricator.kde.org/D29006

To: aprcela, #dolphin, elvisangelaccio, ngraham, meven, dfaure
Cc: yurchor, kde-doc-english, dfaure, meven, kfm-devel, azyx, nikolaik, pberestov, iasensio, aprcela, fprice, gennad, fbampaloukas, alexde, Codezela, feverfew, spoorun, navarromorales, firef, ngraham, andrebarros, skadinna, emmanuelp, rdieter, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-doc-english/attachments/20200502/6d385696/attachment.html>


More information about the kde-doc-english mailing list