[dolphin] [Bug 466814] dolphin rename file selects part of the extension when name contains composed glyphs (diacritics, emojis)

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Tue Aug 13 18:39:02 BST 2024


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

fanzhuyifan at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/syst |https://invent.kde.org/syst
                   |em/dolphin/-/commit/021365d |em/dolphin/-/commit/34d3f77
                   |ceb590a14bfcdb904ea05ffdd69 |0bcc5759f46b0ccc8fcad9956c7
                   |b7d663                      |fbed0a

--- Comment #4 from fanzhuyifan at gmail.com ---
Git commit 34d3f770bcc5759f46b0ccc8fcad9956c7fbed0a by Yifan Zhu.
Committed on 13/08/2024 at 16:29.
Pushed by meven into branch 'release/24.08'.

KStandardItemListWidget: select by number of unicode chars

Previously during rename, the number of QChar is used for selection,
which might be different from number of unicode characters.

Test plan:
- create the file zz❤️❤️.txt
- rename the file
- verify that the first 4 characters are correctly selected, which
  didn't work before the patch.


(cherry picked from commit 021365dceb590a14bfcdb904ea05ffdd69b7d663)

Co-authored-by: Yifan Zhu <fanzhuyifan at gmail.com>

M  +8    -9    src/kitemviews/kfileitemlistwidget.cpp
M  +1    -1    src/kitemviews/kfileitemlistwidget.h
M  +12   -1    src/kitemviews/kstandarditemlistwidget.cpp
M  +3    -1    src/kitemviews/kstandarditemlistwidget.h

https://invent.kde.org/system/dolphin/-/commit/34d3f770bcc5759f46b0ccc8fcad9956c7fbed0a

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


More information about the kfm-devel mailing list