From 4aea85aa2e205040da3ebdf50debde8b296e3c61 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sat, 06 Mar 2004 00:44:40 +0000 Subject: ups, works now .-) --- (limited to 'noncore/net/mail/editaccounts.cpp') diff --git a/noncore/net/mail/editaccounts.cpp b/noncore/net/mail/editaccounts.cpp index 215380d..b8aad11 100644 --- a/noncore/net/mail/editaccounts.cpp +++ b/noncore/net/mail/editaccounts.cpp @@ -517,7 +517,7 @@ void NNTPconfig::slotGetNG() { QCheckListItem *item; item = new QCheckListItem( ListViewGroups, ( QString )group->grp_name, QCheckListItem::CheckBox ); if ( subscribedGroups.contains( ( QString )group->grp_name ) >= 1 ) { - item->setSelected( true ); + item->setOn( true ); } } } @@ -557,14 +557,17 @@ void NNTPconfig::save() data->setPassword( passLine->text() ); QListViewItemIterator list_it( ListViewGroups ); - for ( ; list_it.current(); ++list_it ) { + QStringList groupList; - if ( list_it.current()->isSelected() ) { + for ( ; list_it.current(); ++list_it ) { + + if ( ( (QCheckListItem*)list_it.current() )->isOn() ) { qDebug(list_it.current()->text(0) ); groupList.append( list_it.current()->text(0) ); } - data->setGroups( groupList ); + } + data->setGroups( groupList ); } void NNTPconfig::accept() -- cgit v0.9.0.2