-rw-r--r-- | noncore/net/mail/viewmail.cpp | 10 | ||||
-rw-r--r-- | noncore/net/mail/viewmail.h | 1 |
2 files changed, 7 insertions, 4 deletions
diff --git a/noncore/net/mail/viewmail.cpp b/noncore/net/mail/viewmail.cpp index c24d5d3..a73dac5 100644 --- a/noncore/net/mail/viewmail.cpp +++ b/noncore/net/mail/viewmail.cpp | |||
@@ -11,4 +11,5 @@ | |||
11 | #include "composemail.h" | 11 | #include "composemail.h" |
12 | #include "viewmail.h" | 12 | #include "viewmail.h" |
13 | #include "abstractmail.h" | ||
13 | 14 | ||
14 | AttachItem::AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&file,const QString&desc,int num) | 15 | AttachItem::AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&file,const QString&desc,int num) |
@@ -131,10 +132,9 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int | |||
131 | 132 | ||
132 | case 1: | 133 | case 1: |
133 | |||
134 | qDebug( QString( "Test selected" ).arg( ( ( AttachItem* )item )->Partnumber() ) ); | 134 | qDebug( QString( "Test selected" ).arg( ( ( AttachItem* )item )->Partnumber() ) ); |
135 | if ( ( ( AttachItem* )item )->Partnumber() == -1 ) { | 135 | if ( ( ( AttachItem* )item )->Partnumber() == -1 ) { |
136 | setText(); | 136 | setText(); |
137 | } else { | 137 | } else { |
138 | browser->setText( ( m_body.Parts()[( ( AttachItem* )item )->Partnumber() ] ).Identifier() ); | 138 | browser->setText( m_recMail.Wrapper()->fetchPart( m_recMail, m_body.Parts()[ ( ( AttachItem* )item )->Partnumber() ] ) ); |
139 | } | 139 | } |
140 | break; | 140 | break; |
@@ -146,4 +146,6 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int | |||
146 | void ViewMail::setMail( RecMail mail ) { | 146 | void ViewMail::setMail( RecMail mail ) { |
147 | 147 | ||
148 | m_recMail = mail; | ||
149 | |||
148 | m_mail[0] = mail.getFrom(); | 150 | m_mail[0] = mail.getFrom(); |
149 | m_mail[1] = mail.getSubject(); | 151 | m_mail[1] = mail.getSubject(); |
diff --git a/noncore/net/mail/viewmail.h b/noncore/net/mail/viewmail.h index 0e85839..bc12da1 100644 --- a/noncore/net/mail/viewmail.h +++ b/noncore/net/mail/viewmail.h | |||
@@ -46,4 +46,5 @@ private: | |||
46 | bool m_gotBody; | 46 | bool m_gotBody; |
47 | RecBody m_body; | 47 | RecBody m_body; |
48 | RecMail m_recMail; | ||
48 | 49 | ||
49 | // 0 from 1 subject 2 bodytext 3 date | 50 | // 0 from 1 subject 2 bodytext 3 date |