Summary: | Pasted file is not selected if a file/folder was already selected in destination | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Patrick Silva <bugseforuns> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | charl.xacra, dolgener, elvis.angelaccio, nate, radar |
Priority: | NOR | ||
Version: | 22.12.1 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Patrick Silva
2018-12-27 12:35:28 UTC
Can confirm, but only when the file in window A is still selected. When nothing is selected, pasting the item does indeed select the newly-pasted file. It would appear that this behavior is deliberate. From Dolphinview.cpp::updateViewState(): // if there is a selection already, leave it that way if (!selectionManager->hasSelection()) { const int currentIndex = m_model->index(m_currentItemUrl); if (currentIndex != -1) { selectionManager->setCurrentItem(currentIndex); Not sure if this is something we should change. Probably a maintainer decision. Elvis? *** Bug 413388 has been marked as a duplicate of this bug. *** easier way to reproduce: open Dolphin and copy any file open another folder cpntaining at least 1 folder/file select the file/folder already present paste the file copied in the first step by pressing ctrl+v IMHO this is a bug and should be fixed. This is because the behavior is inconsistent. If there is no other selected file, then the pasted one gets selected. If there is another file selected, then it is NOT selected. Also, take this scenario: I have a template file, say an invoice, and I need to copy it, edit it, and send it away. So I copy it, and paste it in place. The rename file dialog appears, so I rename it (notice that I am working on the copy now!). When the dialogue closes, the file I just acted upon is not selected, the other one is. This is unexpected and hard to notice, so I press Enter to edit it... and I am editing the template instead of the intended file. Also, when pasting and renaming, the just-pasted file may well slide beyond view (if there are many files and the new name is far away). In fact I am here because I just messed up a few folders like this. I hope it can be fixed soon! *** Bug 421689 has been marked as a duplicate of this bug. *** Cannot reproduce with Dolphin 23.08.3. |