[Kde-pim] Re: Mail migration issues caused by side effects
Kevin Krammer
kevin.krammer at gmx.at
Tue Nov 30 16:25:35 GMT 2010
On Tuesday, 2010-11-30, Tobias König wrote:
> On Sunday 28 November 2010 21:10:40 Kevin Krammer wrote:
> > Hi all,
>
> Hej Kevin,
>
> > 2) Tobias removed a connect from the migrator's info dialog to the
> > dialog's deleteLater() slot.
> >
> > Side effect: the migrator does not exit anymore. Probably because the
> > dialog is not destroyed elsewhere, so the KGlobal::deref() in its
> > destructor is not called either.
>
> Hmm... then we have an problem here. If we use deleteLater(), the dialog
> will be destroyed at the point where hasError() is called on it.
> That's not my code, so whoever feels responsible should just make sure that
> this won't happen ;)
I guess a quick&dirty solution would be to make hasError() (and any variable
it accesses) static so it can be accessed without instance.
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20101130/e3013ac2/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list