Skip to content

Don't double delete PlasmoidItems

Marco Martin requested to merge work/mart/doubleDeletionCheck into master
  • Emit appletDeleted when it's still functional with configuration objects
  • delete qmlObject on appletDeleted

qmlObject was deleted by deleteChildren of Applet, and deleted its instantiated plasmoidItem on its own deletion. deleting the plasmoiditem in appletDeleted casues a double deletion, while deleting the plasmoiditem as late as in Applet's QObject destructor causes the Applet not being valid and accessible anymore, but PlasmoidItem needs Applet to still be valid upon its own destructor

Merge request reports

Loading