[dolphin] [Bug 504490] After sending files to Trash, Dolphin selects files randomly

Méven bugzilla_noreply at kde.org
Sun Sep 21 11:29:00 BST 2025


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

Méven <meven at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/76a79ba
                   |                            |3e8660e9fdfd8e897c69065e797
                   |                            |21545e

--- Comment #4 from Méven <meven at kde.org> ---
Git commit 76a79ba3e8660e9fdfd8e897c69065e79721545e by Méven Car.
Committed on 21/09/2025 at 08:40.
Pushed by meven into branch 'master'.

dolphinview: position the focus after the last removed file

Previously, the code could misposition the selection after removal if
the last file in the view was removed and several files were selected.

And since it didn't clear the selection, the previous selection
influence the selection.

Instead clear the selection and position only the focus, either on the
next item after the last index, or the last item still in the view if the last
item was removed.

M  +4    -8    src/views/dolphinview.cpp

https://invent.kde.org/system/dolphin/-/commit/76a79ba3e8660e9fdfd8e897c69065e79721545e

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list