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

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/bbab9e6
                   |                            |d23c488ef83013e81d213b1c08c
                   |                            |6e9fc0

--- Comment #3 from Méven <[email protected]> ---
Git commit bbab9e6d23c488ef83013e81d213b1c08c6e9fc0 by Méven Car.
Committed on 21/10/2026 at 10:56.
Pushed by meven into branch 'master'.

kfileitemmodel: apply the refresh of an item that setData() renamed

After the rename dialog, DolphinView renames the item in the model with
setData().
setData() changes the url of the KFileItem but keeps its mime type.
The dir lister then sends a refresh that names the old url.
Before this change, the model did not find that url and dropped the refresh.
The item kept the icon and the default application of its old extension until
the folder was reloaded.

slotRefreshItems() now looks for the new url when the old one is not in the
model.

This was a regression from 1ba5168e3

M  +5    -1    src/kitemviews/kfileitemmodel.cpp
M  +35   -0    src/tests/kfileitemmodeltest.cpp

https://invent.kde.org/system/dolphin/-/commit/bbab9e6d23c488ef83013e81d213b1c08c6e9fc0

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

Reply via email to