Diffstat (limited to 'noncore/net/mail/nntpgroups.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/nntpgroups.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/mail/nntpgroups.cpp b/noncore/net/mail/nntpgroups.cpp index 8741c4b..3243ee3 100644 --- a/noncore/net/mail/nntpgroups.cpp +++ b/noncore/net/mail/nntpgroups.cpp | |||
@@ -32,31 +32,31 @@ void NNTPGroups::slotGetNG() | |||
32 | item->setOn( true ); | 32 | item->setOn( true ); |
33 | subscribedGroupsNotListed.remove((*it)); | 33 | subscribedGroupsNotListed.remove((*it)); |
34 | } | 34 | } |
35 | } | 35 | } |
36 | } | 36 | } |
37 | 37 | ||
38 | void NNTPGroups::fillGroups() | 38 | void NNTPGroups::fillGroups() |
39 | { | 39 | { |
40 | if (!m_Account) return; | 40 | if (!m_Account) return; |
41 | subscribedGroups = m_Account->getGroups(); | 41 | subscribedGroups = m_Account->getGroups(); |
42 | for ( QStringList::Iterator it = subscribedGroups.begin(); it != subscribedGroups.end(); ++it ) { | 42 | for ( QStringList::Iterator it = subscribedGroups.begin(); it != subscribedGroups.end(); ++it ) { |
43 | QCheckListItem *item; | 43 | QCheckListItem *item; |
44 | item = new QCheckListItem( GroupListView, (*it), QCheckListItem::CheckBox ); | 44 | item = new QCheckListItem( GroupListView, (*it), QCheckListItem::CheckBox ); |
45 | item->setOn( true ); | 45 | item->setOn( true ); |
46 | } | 46 | } |
47 | } | 47 | } |
48 | 48 | ||
49 | void NNTPGroups::storeValues() | 49 | void NNTPGroups::storeValues() |
50 | { | 50 | { |
51 | if (!m_Account) return; | 51 | if (!m_Account) return; |
52 | QListViewItemIterator list_it( GroupListView ); | 52 | QListViewItemIterator list_it( GroupListView ); |
53 | subscribedGroups.clear(); | 53 | subscribedGroups.clear(); |
54 | for ( ; list_it.current(); ++list_it ) { | 54 | for ( ; list_it.current(); ++list_it ) { |
55 | if ( ( (QCheckListItem*)list_it.current() )->isOn() ) { | 55 | if ( ( (QCheckListItem*)list_it.current() )->isOn() ) { |
56 | qDebug(list_it.current()->text(0) ); | 56 | odebug << list_it.current()->text(0) << oendl; |
57 | subscribedGroups.append( list_it.current()->text(0) ); | 57 | subscribedGroups.append( list_it.current()->text(0) ); |
58 | } | 58 | } |
59 | } | 59 | } |
60 | subscribedGroups+=subscribedGroupsNotListed; | 60 | subscribedGroups+=subscribedGroupsNotListed; |
61 | m_Account->setGroups( subscribedGroups ); | 61 | m_Account->setGroups( subscribedGroups ); |
62 | } | 62 | } |