[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/libkopete
From:       Jakub Stachowski <qbast () go2 ! pl>
Date:       2005-12-31 21:11:07
Message-ID: 1136063467.111504.13514.nullmailer () svn ! kde ! org
[Download RAW message or body]

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();
 	


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic