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

Nate Graham <n...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/libplasma/-/commit/59e22 |ma/libplasma/-/commit/3addd
                   |bcddec4ad2684f9b6291439725b |a549339b46026eb75ed56c48345
                   |6eedfaba                    |a5108e72

--- Comment #6 from Nate Graham <n...@kde.org> ---
Git commit 3addda549339b46026eb75ed56c48345a5108e72 by Nate Graham.
Committed on 20/05/2025 at 13:40.
Pushed by ngraham into branch 'Plasma/6.4'.

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'.


(cherry picked from commit 59e22bcddec4ad2684f9b6291439725b6eedfaba)

987ad2d1 Fix crash in drop job

Co-authored-by: David Edmundson <k...@davidedmundson.co.uk>

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

https://invent.kde.org/plasma/libplasma/-/commit/3addda549339b46026eb75ed56c48345a5108e72

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

Reply via email to