From kde-commits Sat Dec 31 21:11:07 2005 From: Jakub Stachowski Date: Sat, 31 Dec 2005 21:11:07 +0000 To: kde-commits Subject: KDE/kdenetwork/kopete/libkopete Message-Id: <1136063467.111504.13514.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=113606347432145 SVN commit 492981 by qbast: Contact destructor triggered contactDestroyed slot that removed Contact* from hash. qDeleteAll() does not like this. M +1 -0 kopeteaccount.cpp --- trunk/KDE/kdenetwork/kopete/libkopete/kopeteaccount.cpp #492980:492981 @@ -101,6 +101,7 @@ { d->contacts.remove( d->myself->contactId() ); // Delete all registered child contacts first + foreach (Contact* c, d->contacts) QObject::disconnect(c, SIGNAL( contactDestroyed( Kopete::Contact * ) ), this, 0); qDeleteAll(d->contacts); d->contacts.clear();