summaryrefslogtreecommitdiff
path: root/noncore/net/mail/editaccounts.cpp
Unidiff
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() {
514 group = ( newsnntp_group_description* ) current->data; 514 group = ( newsnntp_group_description* ) current->data;
515 // qDebug( group->grp_name ); 515 // qDebug( group->grp_name );
516 516
517 QCheckListItem *item; 517 QCheckListItem *item;
518 item = new QCheckListItem( ListViewGroups, ( QString )group->grp_name, QCheckListItem::CheckBox ); 518 item = new QCheckListItem( ListViewGroups, ( QString )group->grp_name, QCheckListItem::CheckBox );
519 if ( subscribedGroups.contains( ( QString )group->grp_name ) >= 1 ) { 519 if ( subscribedGroups.contains( ( QString )group->grp_name ) >= 1 ) {
520 item->setSelected( true ); 520 item->setOn( true );
521 } 521 }
522 } 522 }
523} 523}
524 524
525void NNTPconfig::slotSSL( bool enabled ) 525void NNTPconfig::slotSSL( bool enabled )
526{ 526{
@@ -554,20 +554,23 @@ void NNTPconfig::save()
554 data->setSSL( sslBox->isChecked() ); 554 data->setSSL( sslBox->isChecked() );
555 data->setLogin( loginBox->isChecked() ); 555 data->setLogin( loginBox->isChecked() );
556 data->setUser( userLine->text() ); 556 data->setUser( userLine->text() );
557 data->setPassword( passLine->text() ); 557 data->setPassword( passLine->text() );
558 558
559 QListViewItemIterator list_it( ListViewGroups ); 559 QListViewItemIterator list_it( ListViewGroups );
560 for ( ; list_it.current(); ++list_it ) { 560
561 QStringList groupList; 561 QStringList groupList;
562 if ( list_it.current()->isSelected() ) { 562 for ( ; list_it.current(); ++list_it ) {
563
564 if ( ( (QCheckListItem*)list_it.current() )->isOn() ) {
563 qDebug(list_it.current()->text(0) ); 565 qDebug(list_it.current()->text(0) );
564 groupList.append( list_it.current()->text(0) ); 566 groupList.append( list_it.current()->text(0) );
565 } 567 }
566 data->setGroups( groupList ); 568
567 } 569 }
570 data->setGroups( groupList );
568} 571}
569 572
570void NNTPconfig::accept() 573void NNTPconfig::accept()
571{ 574{
572 save(); 575 save();
573 QDialog::accept(); 576 QDialog::accept();