summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/editaccounts.cpp11
-rw-r--r--noncore/net/mail/libmailwrapper/nntpwrapper.cpp2
2 files changed, 8 insertions, 5 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
@@ -519,3 +519,3 @@ void NNTPconfig::slotGetNG() {
if ( subscribedGroups.contains( ( QString )group->grp_name ) >= 1 ) {
- item->setSelected( true );
+ item->setOn( true );
}
@@ -559,5 +559,7 @@ void NNTPconfig::save()
QListViewItemIterator list_it( ListViewGroups );
- for ( ; list_it.current(); ++list_it ) {
+
QStringList groupList;
- if ( list_it.current()->isSelected() ) {
+ for ( ; list_it.current(); ++list_it ) {
+
+ if ( ( (QCheckListItem*)list_it.current() )->isOn() ) {
qDebug(list_it.current()->text(0) );
@@ -565,4 +567,5 @@ void NNTPconfig::save()
}
- data->setGroups( groupList );
+
}
+ data->setGroups( groupList );
}
diff --git a/noncore/net/mail/libmailwrapper/nntpwrapper.cpp b/noncore/net/mail/libmailwrapper/nntpwrapper.cpp
index 2d6f9a3..ecdf848 100644
--- a/noncore/net/mail/libmailwrapper/nntpwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/nntpwrapper.cpp
@@ -126,3 +126,3 @@ void NNTPwrapper::login()
- if ( account->getUser().isEmpty() || account->getPassword().isEmpty() ) {
+ if ( ( account->getUser().isEmpty() || account->getPassword().isEmpty() ) && account->getLogin() ) {
LoginDialog login( account->getUser(), account->getPassword(), NULL, 0, true );