keditbookmarks crash, KParts related

Koos Vriezen koos.vriezen at xs4all.nl
Mon Jun 13 18:23:33 BST 2005


On Mon, Jun 13, 2005 at 01:49:25PM +0200, David Faure wrote:
> On Friday 10 June 2005 18:02, Koos Vriezen wrote:
> > On Fri, Jun 10, 2005 at 05:23:55PM +0200, David Faure wrote:
> > Given that the widget 
> > and part may have different parents, this change could mean that the
> > widget still lives and the part is dead or visa versa, no?
> Right, this situation should only be very temporary, otherwise things will
> crash, of course.
> 
> Maybe we can keep the "connection to destroyed signal from the widget" inside 
> KParts, but only to set the part's widget to 0 (to avoid crashes or make them clearer),
> not to actually delete the part in a suicidal manner like we do now (which itself
> requires the app to watch for it with a QGuardedPtr).

Yes, I think that would be a improvement indeed. Does add another YAPI
(yet another porting issue) of course.
I do recall me struggling with this current destruction scheme too, so
probably worth the YAPI.

Koos




More information about the kfm-devel mailing list