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

--- Comment #4 from Nate Graham <[email protected]> ---
Git commit cb94120457d25b3057a1805177714fde913dc372 by Nate Graham, on behalf
of Zühtü Eren İncekara.
Committed on 01/11/2026 at 03:56.
Pushed by ngraham into branch 'master'.

foldermodel: give KFileItemActions a QObject to own plugin-returned actions

There is no QWidget to use as parentWidget on this QML path, so
plugins that need an owner for the QActions they return (such as
Dolphin's folder icon action via KFileItemActionPluginV2) got nullptr
and leaked them.

Pass the popup menu through KFileItemActions::setParentObject(), added
in KIO 6.32 (https://invent.kde.org/frameworks/kio/-/merge_requests/2427).
The menu is deleted right after the popup closes, which also frees the
actions. It is not set as parentWidget, since that is also used for job
dialogs that must outlive the popup.

M  +2    -0    containments/desktop/plugins/folder/foldermodel.cpp

https://invent.kde.org/plasma/plasma-desktop/-/commit/cb94120457d25b3057a1805177714fde913dc372

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

Reply via email to