[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork/kopete/kopete/addcontactwizard
From: Duncan Mac-Vicar Prett <duncan () kde ! org>
Date: 2005-11-19 22:52:25
Message-ID: 1132440745.533414.7918.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 481650 by dmacvicar:
dont crash
M +6 -4 addcontactwizard.cpp
--- trunk/KDE/kdenetwork/kopete/kopete/addcontactwizard/addcontactwizard.cpp #481649:481650
@@ -84,12 +84,14 @@
// selectAddressee->addWidget(m_addressbookSelectorWidget);
// Populate the groups list
- Kopete::GroupList groups=Kopete::ContactList::self()->groups();
- for( Kopete::Group *it = groups.first(); it; ++it )
+ Kopete::GroupList groups = Kopete::ContactList::self()->groups();
+ QListIterator<Kopete::Group *> it(groups);
+ while ( it.hasNext() )
{
- QString groupname = it->displayName();
+ Kopete::Group *grp = it.next();
+ QString groupname = grp->displayName();
if ( !groupname.isEmpty() )
- m_groupItems.insert(new Q3CheckListItem( groupList, groupname, Q3CheckListItem::CheckBox) , it ) ;
+ m_groupItems.insert(new Q3CheckListItem( groupList, groupname, Q3CheckListItem::CheckBox) , grp ) ;
}
protocolListView->clear();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic