summaryrefslogtreecommitdiff
path: root/noncore/net/mail/nntpgroups.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/mail/nntpgroups.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/nntpgroups.cpp7
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 @@
#include <qlistview.h>
+#include <qlineedit.h>
@@ -23,3 +24,5 @@ void NNTPGroups::slotGetNG()
NNTPwrapper tmp( m_Account );
- QStringList list = tmp.listAllNewsgroups();
+ QString filter = Groupfilteredit->text();
+ QStringList list = tmp.listAllNewsgroups(filter);
+ subscribedGroupsNotListed = subscribedGroups;
for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) {
@@ -29,2 +32,3 @@ void NNTPGroups::slotGetNG()
item->setOn( true );
+ subscribedGroupsNotListed.remove((*it));
}
@@ -55,2 +59,3 @@ void NNTPGroups::storeValues()
}
+ subscribedGroups+=subscribedGroupsNotListed;
m_Account->setGroups( subscribedGroups );