[kde] [Bug 481229] Segfault when adding new File Association

Harald Sitter bugzilla_noreply at kde.org
Mon Feb 12 17:08:35 GMT 2024


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

Harald Sitter <sitter at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kde-cli-tools/-/commit/c
                   |                            |099d4b08b5efd96e5748ba905fe
                   |                            |2cddcada07fd
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #2 from Harald Sitter <sitter at kde.org> ---
Git commit c099d4b08b5efd96e5748ba905fe2cddcada07fd by Harald Sitter.
Committed on 11/02/2024 at 21:09.
Pushed by sitter into branch 'master'.

keditfiletype: fix crash when adding apps to "empty" views

thou shalt not c-cast => let's dynamic cast, through dynamic cast we'll
notice that the items aren't actually what we thought they should be and
then we can skip them.

notably when there is no app association we insert a fake 'None' entry,
this entry is still present when updatePreferredServices runs but needs
skipping because it does not represent a service

I should note that the UX for the new-association use case is fairly
buggy still, but at least it doesn't crash

M  +10   -3    keditfiletype/kservicelistwidget.cpp

https://invent.kde.org/plasma/kde-cli-tools/-/commit/c099d4b08b5efd96e5748ba905fe2cddcada07fd

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list