kmaterka added a comment.
Continuation of D24667 <https://phabricator.kde.org/D24667>. I know this solution sucks, but I have no idea how this can be done better. I have another idea, probably even crazier: set "DO_NOT_DELETE" flag as a QObject property. Then in destructor check it: if (d->m_menu->property("DO_NOT_DELETE") == true) // ignore Obviously that would be undocumented, ugly hack... Any other idea how to fix bug 365105? REPOSITORY R289 KNotifications REVISION DETAIL https://phabricator.kde.org/D24755 To: kmaterka, #frameworks, davidedmundson, broulik, nicolasfella Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns