Bug 445826 - after undoing rename, dolphin view doesn't change
Summary: after undoing rename, dolphin view doesn't change
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 23.08.1
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-20 16:47 UTC by glyphimor
Modified: 2023-10-12 03:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description glyphimor 2021-11-20 16:47:27 UTC
SUMMARY

In Dolphin, when you rename an item (file, folder, etc.) in a directory, the item's icon or row may move to a different position based on the directory's Sort By. If there are too many items to fit in the Dolphin window, when you rename the item and its position changes, Dolphin's view changes to show the file's new position. When you undo the rename, the item moves back to its original position; however, Dolphin's view doesn't change -- the item is no longer visible.

STEPS TO REPRODUCE
1. Run these commands:

```
mkdir tmp
cd tmp
for i in {1..20}; do touch "$i"; done
dolphin .
```
2. In the Dolphin window, sort by Name
3. If necessary, reduce the size of the Dolphin window until not all the files are visible (i.e. the scrollbar appears)
4. Rename 1 to 21
5. Undo

OBSERVED RESULT

After 3, Dolphin view moved from the top of the directory to the bottom, but after 4, view stayed at the bottom.

EXPECTED RESULT

After 4, Dolphin view should have returned to the top of the directory.

SOFTWARE/OS VERSIONS
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

Same behavior occurs in both Details view and Icons view.