Diffstat (limited to 'noncore/net/mail/editaccounts.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/editaccounts.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/net/mail/editaccounts.cpp b/noncore/net/mail/editaccounts.cpp index 2a1acc0..215380d 100644 --- a/noncore/net/mail/editaccounts.cpp +++ b/noncore/net/mail/editaccounts.cpp @@ -9,2 +9,3 @@ #include <qt.h> +#include <qstringlist.h> @@ -513,3 +514,3 @@ void NNTPconfig::slotGetNG() { group = ( newsnntp_group_description* ) current->data; - qDebug( group->grp_name ); + // qDebug( group->grp_name ); @@ -517,2 +518,5 @@ void NNTPconfig::slotGetNG() { item = new QCheckListItem( ListViewGroups, ( QString )group->grp_name, QCheckListItem::CheckBox ); + if ( subscribedGroups.contains( ( QString )group->grp_name ) >= 1 ) { + item->setSelected( true ); + } } @@ -541,2 +545,3 @@ void NNTPconfig::fillValues() passLine->setText( data->getPassword() ); + subscribedGroups = data->getGroups(); } @@ -555,5 +560,8 @@ void NNTPconfig::save() for ( ; list_it.current(); ++list_it ) { + QStringList groupList; if ( list_it.current()->isSelected() ) { qDebug( list_it.current()->text(0) ); + groupList.append( list_it.current()->text(0) ); } + data->setGroups( groupList ); } |