https://bugs.kde.org/show_bug.cgi?id=521325
Méven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/libr |https://invent.kde.org/libr |aries/baloo-widgets/-/commi |aries/baloo-widgets/-/commi |t/11a33aae0efbb0699a8590102 |t/541df491b822f29ea01e218fd |0285c4fab2ba1c9 |c4c44cf80abbbac --- Comment #6 from Méven <[email protected]> --- Git commit 541df491b822f29ea01e218fdc4c44cf80abbbac by Méven Car. Committed on 13/06/2026 at 11:48. Pushed by meven into branch 'release/26.04'. tagsfileitemaction: fix crash on empty selection TagsFileItemAction::actions() only guarded against multiple selected items (size > 1) before calling urlList().constFirst().toLocalFile(). On an empty selection, such as a viewport context menu where no item is under the cursor, urlList() is empty and constFirst() is undefined behaviour, dereferencing a garbage QUrl and crashing in QUrl::toLocalFile. This action only ever handles a single file, so require exactly one url (size == 1), which rejects both the empty and multi-selection cases. (cherry picked from commit 11a33aae0efbb0699a85901020285c4fab2ba1c9) Co-authored-by: Méven Car <[email protected]> M +3 -1 src/tagsfileitemactionplugin/tagsfileitemaction.cpp https://invent.kde.org/libraries/baloo-widgets/-/commit/541df491b822f29ea01e218fdc4c44cf80abbbac -- You are receiving this mail because: You are watching all bug changes.
