https://bugs.kde.org/show_bug.cgi?id=402784

--- Comment #6 from Elvis Angelaccio <elvis.angelac...@kde.org> ---
(In reply to David Hallas from comment #4)
> (In reply to Elvis Angelaccio from comment #1)
> > The problem is that when we stop the activity, the KItemListViewAccessible
> > destructor is called *after* QApplication::exec() from the main() returns
> > (no idea why). At that point, m_cells contains only dangling pointers and
> > everything falls apart.
> 
> Hi Elvis,
> 
> I was looking at the code for this and I was thinking if a solution could be
> to change the m_cells type to store QAccessible::Id instead of a pointer to
> QAccessibleInterface, since Qt provides easy access to the
> QAccessibleInterface* given the Id. Then in the destructor we could simply
> lookup the QAccessibleInterface* pointer with the Id and delete it if it was
> found?

This sounds interesting. Feel free to try and submit a patch if it works :)

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

Reply via email to