Diffstat (limited to 'noncore/net/mail/nntpgroups.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/nntpgroups.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/net/mail/nntpgroups.cpp b/noncore/net/mail/nntpgroups.cpp index 97b1985..8741c4b 100644 --- a/noncore/net/mail/nntpgroups.cpp +++ b/noncore/net/mail/nntpgroups.cpp | |||
@@ -5,2 +5,3 @@ | |||
5 | #include <qlistview.h> | 5 | #include <qlistview.h> |
6 | #include <qlineedit.h> | ||
6 | 7 | ||
@@ -23,3 +24,5 @@ void NNTPGroups::slotGetNG() | |||
23 | NNTPwrapper tmp( m_Account ); | 24 | NNTPwrapper tmp( m_Account ); |
24 | QStringList list = tmp.listAllNewsgroups(); | 25 | QString filter = Groupfilteredit->text(); |
26 | QStringList list = tmp.listAllNewsgroups(filter); | ||
27 | subscribedGroupsNotListed = subscribedGroups; | ||
25 | for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { | 28 | for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { |
@@ -29,2 +32,3 @@ void NNTPGroups::slotGetNG() | |||
29 | item->setOn( true ); | 32 | item->setOn( true ); |
33 | subscribedGroupsNotListed.remove((*it)); | ||
30 | } | 34 | } |
@@ -55,2 +59,3 @@ void NNTPGroups::storeValues() | |||
55 | } | 59 | } |
60 | subscribedGroups+=subscribedGroupsNotListed; | ||
56 | m_Account->setGroups( subscribedGroups ); | 61 | m_Account->setGroups( subscribedGroups ); |