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

Marco Martin <notm...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/libplasma/-/commit/59e22
                   |                            |bcddec4ad2684f9b6291439725b
                   |                            |6eedfaba
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Marco Martin <notm...@gmail.com> ---
Git commit 59e22bcddec4ad2684f9b6291439725b6eedfaba by Marco Martin, on behalf
of David Edmundson.
Committed on 20/05/2025 at 08:35.
Pushed by mart into branch 'master'.

Fix crash in drop job

When a mimedata is dragged onto the desktop libplasma goes through one
of two paths, one immediate, if multiple are present we show a menu and
act when one is selected.

The attached mimedata from a dropevent is only valid during the initial
handling. It is not safe to capture in a lambda.

This patch catpures data ahead of time.

This also fixes a bug that this async path could never have worked, it
needs to call into pluginFormats. Otherwise we're looking up the
mimedata 'org.kde.mediaFrame' rather than 'image/png'.

M  +9    -6    src/plasmaquick/plasmoid/containmentitem.cpp

https://invent.kde.org/plasma/libplasma/-/commit/59e22bcddec4ad2684f9b6291439725b6eedfaba

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

Reply via email to