https://bugs.kde.org/show_bug.cgi?id=502766

            Bug ID: 502766
           Summary: Deleting a file to trash, when the selected file is
                    being renamed, deletes the file below it.
    Classification: Applications
           Product: dolphin
           Version: 24.12.3
          Platform: Flatpak
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-n...@kde.org
          Reporter: somethingliketh...@protonmail.com
                CC: kfm-de...@kde.org
  Target Milestone: ---

Deleting a file to trash, when the selected file is being renamed, deletes the
file below it.

Viewing the Trash after doing the following steps, results in a duplicate of
the selected file being sent to the Trash, and the file below the selected file
deleted. It vanishes.

STEPS TO REPRODUCE
Please set up a folder with test files. A minimum of two files must be within
the directory.
1. I am using the Details view.
2. Click on a file, that has a file below it within the Details view.
3. Click on the name of the file, again, so that it initiates renaming the
file.
4. In the time between clicking on the file, and the initiation of renaming the
file: right click on the file.
5. You should now have the context menu open, whilst the file is being renamed.
The context menu should be the same as when right-clicking a file normally: if
you see the context menu for editing text, you right-clicked too late.
6. Select the Move to Trash option.
7. The selected file is not deleted, the file below it is deleted, and a
duplicate of the selected file is sent to the Trash instead.

OBSERVED RESULT
Deleting a file in this manner results in data loss.

EXPECTED RESULT
This should delete the selected file only.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Alpine Linux 6.14.0-0-edge, Flatpak Dolphin 24.12.3 (as
installed from Flathub).
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to