<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: Plasma.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.<br />davidedmundson requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12064">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The original owner of a graphics item is the declarative applet script which<br />
is owned and deleted by the applet.</p>

<p>Reparenting the containmentquickitem to the containment doesn't really<br />
solve anything useful, we were originally effectively owned by the<br />
containment(an applet subclass) not the view anyway.</p>

<p>This code also accidentally moves the destruction of the applet from being in<br />
::~Applet to being in ::~QObject of the relevant containment. This<br />
causes a big problem if the AppletQuickItem tries to access the applet<br />
in it's own destructor. The applet object still exists, but use of<br />
Applet member variables is not valid.</p>

<p>The new preloading code does this, leading to a crash.</p>

<p>BUG: 391642</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Changed desktop to folder twice<br />
Changed activities twice</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R242 Plasma Framework (Library)</div></div></div><br /><div><strong>BRANCH</strong><div><div>origin-master (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12064">https://phabricator.kde.org/D12064</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/plasmaquick/containmentview.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>Frameworks, michaelh, ngraham, bruns<br /></div>