<table><tr><td style="">davidedmundson added a comment.
</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/D5321" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Your reasoning behind the bug is missing some steps.</p>

<p>QObject destruction deletes children *then* emits QObject::destroyed<br />
Applets are children of the containment. (see Containment::addApplet())</p>

<p>So if the notification applet is in the panel, it's fine (and won't crash)</p>

<p>What you actually have is: panel containment -> system tray -> system tray containment -> notification applet</p>

<p>System tray must be not setting applets as children of the system tray containment? Or not deleting it's containment when it deletes the applet?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5321" rel="noreferrer">https://phabricator.kde.org/D5321</a></div></div><br /><div><strong>To: </strong>broulik, Plasma<br /><strong>Cc: </strong>davidedmundson, plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>