D27650: ItemContainer: disconnect signals in destructor
Aleksei Nikiforov
noreply at phabricator.kde.org
Wed Feb 26 11:27:23 GMT 2020
alnikiforov added inline comments.
INLINE COMMENTS
> davidedmundson wrote in itemcontainer.cpp:68
> Right, this one line makes a lot of sense.
>
> I can imagine QQuickItem::~QuickItem changes parent, and calling ItemContainer::setLayout after we've run our ItemContainers destructor means all bets are completely off. I can believe an already destroyed QPointer behaves weirdly.
>
> Lets not change the other two. There's no chance of an event loop processing a timer event after ItemContainer:::~ItemContainer before we're auto disconnected.
Should I remove these 2 disconnects or leave them as they are?
REPOSITORY
R120 Plasma Workspace
REVISION DETAIL
https://phabricator.kde.org/D27650
To: alnikiforov, ngraham, davidedmundson, mart
Cc: anthonyfieroni, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200226/b4e74ce6/attachment.html>
More information about the Plasma-devel
mailing list