Gideon crashes when opening a file in MDI mode

David Faure david at mandrakesoft.com
Wed May 22 10:17:03 UTC 2002


On Wednesday 22 May 2002 10:08, Bernd Gehrmann wrote:
> On Wednesday 22 May 2002 08:59, Simon Hausmann wrote:
> 
> > Hm, yes. But it takes more than that. The slot connected to the
> > part's destroyed() signal calls removePart() with sender(). If
> > removedPart would call setManager, then in that case it would
> > call it on a partially dead object, as the destroyed() signal is
> > emitted from within the ~Object destructor.  I guess it would still
> > work given that the object is allocated as one big chunk of memory,
> > freed after the last dtor, but that's a hack ;-)
> 
> The patch again... someday I'll learn to use KMail ;-)
> 
> This calls removePart() from the Part destructor.

Ah yes, that's another possible approach. More straight-forward.
Why not? I see no problem with this. Simon?

-- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KDE, Making The Future of Computing Available Today






More information about the KDevelop-devel mailing list