Commit db0f5e68 authored by Dominic Hayes's avatar Dominic Hayes Committed by Nate Graham
Browse files

Fix "PanelSpacer::containmentGraphicObject()" plasmashell segfault

This one-liner fix is from Aleix Pol, and fixes the following:

- Crashes when deleting panels with Panel Spacer instances on them
  (as described in the bug ID named above)
- Potentially endless crash looping when running `plasmashell --replace`
  while a Panel Spacer is on at least one panel

Co-authored-by: Aleix Pol Gonzalez's avatarAleix Pol <>

BUG: 450663
FIXED-IN: 5.25.3

(cherry picked from commit 65fe6b86)
parent 627d6ab6
Pipeline #202045 passed with stage
in 8 minutes and 24 seconds
......@@ -122,6 +122,7 @@ PlasmaQuick::AppletQuickItem *PanelSpacer::twinSpacer() const
PlasmaQuick::AppletQuickItem *PanelSpacer::containmentGraphicObject() const
if (!containment()) return nullptr; // Return nothing if there is no containment to prevent a Segmentation Fault
return containment()->property("_plasma_graphicObject").value<PlasmaQuick::AppletQuickItem *>();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment