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

List:       kde-commits
Subject:    branches/work/kopete/dev-0.12/kopete/kopete/contactlist
From:       Olivier Goffart <ogoffart () kde ! org>
Date:       2006-01-17 12:31:25
Message-ID: 1137501085.769591.12928.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 499260 by ogoffart:

fix crash when deleting lots of contact, and one metacontact is in several group

 M  +5 -2      kopetecontactlistview.cpp  


--- branches/work/kopete/dev-0.12/kopete/kopete/contactlist/kopetecontactlistview.cpp #499259:499260
@@ -1341,13 +1341,16 @@
 			if(metaLVI)
 			{
 				m_selectedContacts.append( metaLVI );
-				contacts.append( metaLVI->metaContact() );
+				if(!contacts.contains(metaLVI->metaContact()))
+					contacts.append( metaLVI->metaContact() );
 			}
 			KopeteGroupViewItem *groupLVI=dynamic_cast<KopeteGroupViewItem*>(item);
 			if(groupLVI)
 			{
 				m_selectedGroups.append( groupLVI );
-				groups.append( groupLVI->group() );
+				if(!groups.contains(groupLVI->group()))
+					groups.append( groupLVI->group() );
+				
 			}
 		}
 	}
[prev in list] [next in list] [prev in thread] [next in thread] 

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