-rw-r--r-- | noncore/net/mail/libmailwrapper/statusmail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/mail/libmailwrapper/statusmail.cpp b/noncore/net/mail/libmailwrapper/statusmail.cpp index 1d7d559..172c58f 100644 --- a/noncore/net/mail/libmailwrapper/statusmail.cpp +++ b/noncore/net/mail/libmailwrapper/statusmail.cpp @@ -29,3 +29,3 @@ void StatusMail::initAccounts(QList<Account>&accounts) for ( it = accounts.first(); it; it = accounts.next() ) { - if ( it->getType().compare( "IMAP" ) == 0 ) { + if ( it->getType().compare( "IMAP" ) == 0 && !it->getOffline() ) { IMAPaccount*ima = static_cast<IMAPaccount *>(it); @@ -37,3 +37,3 @@ void StatusMail::initAccounts(QList<Account>&accounts) currentImapStat.message_count+=currentStat.message_count; - } else if ( it->getType().compare( "POP3" ) == 0 ) { + } else if ( it->getType().compare( "POP3" ) == 0 && !it->getOffline() ) { POP3account *pop3 = static_cast<POP3account *>(it); |