author | harlekin <harlekin> | 2004-03-06 00:44:40 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-03-06 00:44:40 (UTC) |
commit | 4aea85aa2e205040da3ebdf50debde8b296e3c61 (patch) (side-by-side diff) | |
tree | 424ee07b5886d70d45cc5d3b5c9ed6d32fd06d5f /noncore/net/mail/libmailwrapper/nntpwrapper.cpp | |
parent | 7b10be8e0ed88afe9e8964e6b5f1fe449cee3609 (diff) | |
download | opie-4aea85aa2e205040da3ebdf50debde8b296e3c61.zip opie-4aea85aa2e205040da3ebdf50debde8b296e3c61.tar.gz opie-4aea85aa2e205040da3ebdf50debde8b296e3c61.tar.bz2 |
ups, works now .-)
Diffstat (limited to 'noncore/net/mail/libmailwrapper/nntpwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/nntpwrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ -103,49 +103,49 @@ void NNTPwrapper::listMessages(const QString &, QList<RecMail> &target ) return; uint32_t res_messages,res_recent,res_unseen; mailsession_status_folder(m_nntp->sto_session,"INBOX",&res_messages,&res_recent,&res_unseen); parseList(target,m_nntp->sto_session,"INBOX"); } void NNTPwrapper::login() { if (account->getOffline()) return; /* we'll hold the line */ if ( m_nntp != NULL ) return; const char *server, *user, *pass; QString User,Pass; uint16_t port; int err = NEWSNNTP_NO_ERROR; server = account->getServer().latin1(); port = account->getPort().toUInt(); user = pass = 0; - 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 ); login.show(); if ( QDialog::Accepted == login.exec() ) { // ok User = login.getUser().latin1(); Pass = login.getPassword().latin1(); } else { // cancel qDebug( "NNTP: Login canceled" ); return; } } else { User = account->getUser().latin1(); Pass = account->getPassword().latin1(); } if (User.isEmpty()) { user=0; pass = 0; } else { user=User.latin1(); pass=Pass.latin1(); } // bool ssl = account->getSSL(); |