Skip to content

applets/icon: prevent actions from being deleted too early

Fushan Wen requested to merge work/fuf/PLASMA-WORKSPACE-1CC into master

Those actions need to be alive until its parent class's dtor is run (Applet::~Applet) where signals connected to those actions are disconnected. Calling QObject::disconnect on deleted dangling pointers will cause a crash.

By reparenting those actions to IconApplet, the lifetime of those actions can be extended, which fixes the crash.

Closes https://crash-reports.kde.org/organizations/kde/issues/4914/

Edited by Fushan Wen

Merge request reports