https://bugs.kde.org/show_bug.cgi?id=468712
--- Comment #5 from ratijas <m...@ratijas.tk> ---
Speaking of buddyFor crash, this setter's implementation doesn't seem to guard
against null member, does it?

void FormLayoutAttached::setBuddyFor(QQuickItem *buddyfor)
{
    if (m_buddyFor == buddyfor || !m_buddyFor->isAncestorOf(buddyfor)) {
        return;
    }

    m_buddyFor = buddyfor;
    Q_EMIT buddyForChanged();
}


I believe this only ever worked because `isAncestorOf` method does not use ANY
members of *this* object, and instead calls its argument's methods and
comparent with *this* as a pointer.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to