kactioncollection and associated widget

Hamish Rodda rodda at kde.org
Mon Nov 26 00:22:57 GMT 2007


On Mon, 26 Nov 2007 06:21:50 am Thomas Zander wrote:
> On Wednesday 21 November 2007 01:37:58 Hamish Rodda wrote:
> > I've attached a proposed patch
>
> I realized a bug introduced with the patch, one I fixed together with
> David some years ago ;)
>
> If a widget that is in the actioncollections list of associated widgets
> gets deleted the collection has a dangling pointer and you get crashes
> later on.
> The solution we had in kde3 (aka, known to work) was to listen to the
> QObject::destroyed (QObject *=0) signal and remove the widget from the
> list doing a single d->associatedWidgets.removeAll(obj);

I mentioned this in my previous email, and implemented it locally a few days 
ago. I'll post the patch for acceptance-review in a separate thread.

Cheers,
Hamish.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071126/4eff9216/attachment.sig>


More information about the kde-core-devel mailing list