Diffstat (limited to 'noncore/net/mail/accountview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/accountview.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/net/mail/accountview.cpp b/noncore/net/mail/accountview.cpp index 2ddf834..c2185f2 100644 --- a/noncore/net/mail/accountview.cpp +++ b/noncore/net/mail/accountview.cpp | |||
@@ -66,25 +66,32 @@ void AccountView::populate( QList<Account> list ) | |||
66 | { | 66 | { |
67 | IMAPaccount *imap = static_cast<IMAPaccount *>(it); | 67 | IMAPaccount *imap = static_cast<IMAPaccount *>(it); |
68 | qDebug( "added IMAP " + imap->getAccountName() ); | 68 | qDebug( "added IMAP " + imap->getAccountName() ); |
69 | imapAccounts.append(new IMAPviewItem( imap, this )); | 69 | imapAccounts.append(new IMAPviewItem( imap, this )); |
70 | } | 70 | } |
71 | else if ( it->getType().compare( "POP3" ) == 0 ) | 71 | else if ( it->getType().compare( "POP3" ) == 0 ) |
72 | { | 72 | { |
73 | POP3account *pop3 = static_cast<POP3account *>(it); | 73 | POP3account *pop3 = static_cast<POP3account *>(it); |
74 | qDebug( "added POP3 " + pop3->getAccountName() ); | 74 | qDebug( "added POP3 " + pop3->getAccountName() ); |
75 | /* must not be hold 'cause it isn't required */ | 75 | /* must not be hold 'cause it isn't required */ |
76 | (void) new POP3viewItem( pop3, this ); | 76 | (void) new POP3viewItem( pop3, this ); |
77 | } | 77 | } |
78 | } | 78 | else if ( it->getType().compare( "NNTP" ) == 0 ) |
79 | { | ||
80 | NNTPaccount *nntp = static_cast<NNTPaccount *>(it); | ||
81 | qDebug( "added NNTP " + nntp->getAccountName() ); | ||
82 | /* must not be hold 'cause it isn't required */ | ||
83 | (void) new NNTPviewItem( nntp, this ); | ||
84 | } | ||
85 | } | ||
79 | } | 86 | } |
80 | 87 | ||
81 | void AccountView::refresh(QListViewItem *item) | 88 | void AccountView::refresh(QListViewItem *item) |
82 | { | 89 | { |
83 | 90 | ||
84 | qDebug("AccountView refresh..."); | 91 | qDebug("AccountView refresh..."); |
85 | if ( item ) | 92 | if ( item ) |
86 | { | 93 | { |
87 | m_currentItem = item; | 94 | m_currentItem = item; |
88 | QList<RecMail> headerlist; | 95 | QList<RecMail> headerlist; |
89 | headerlist.setAutoDelete(true); | 96 | headerlist.setAutoDelete(true); |
90 | AccountViewItem *view = static_cast<AccountViewItem *>(item); | 97 | AccountViewItem *view = static_cast<AccountViewItem *>(item); |