summaryrefslogtreecommitdiff
path: root/noncore/net/mail/editaccounts.cpp
authorharlekin <harlekin>2004-03-06 00:44:40 (UTC)
committer harlekin <harlekin>2004-03-06 00:44:40 (UTC)
commit4aea85aa2e205040da3ebdf50debde8b296e3c61 (patch) (side-by-side diff)
tree424ee07b5886d70d45cc5d3b5c9ed6d32fd06d5f /noncore/net/mail/editaccounts.cpp
parent7b10be8e0ed88afe9e8964e6b5f1fe449cee3609 (diff)
downloadopie-4aea85aa2e205040da3ebdf50debde8b296e3c61.zip
opie-4aea85aa2e205040da3ebdf50debde8b296e3c61.tar.gz
opie-4aea85aa2e205040da3ebdf50debde8b296e3c61.tar.bz2
ups, works now .-)
Diffstat (limited to 'noncore/net/mail/editaccounts.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/editaccounts.cpp11
1 files changed, 7 insertions, 4 deletions
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
@@ -514,13 +514,13 @@ void NNTPconfig::slotGetNG() {
group = ( newsnntp_group_description* ) current->data;
// qDebug( group->grp_name );
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 );
}
}
}
void NNTPconfig::slotSSL( bool enabled )
{
@@ -554,20 +554,23 @@ void NNTPconfig::save()
data->setSSL( sslBox->isChecked() );
data->setLogin( loginBox->isChecked() );
data->setUser( userLine->text() );
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()
{
save();
QDialog::accept();