-rw-r--r-- | noncore/net/mail/viewmail.cpp | 6 | ||||
-rw-r--r-- | noncore/net/mail/viewmail.h | 1 |
2 files changed, 5 insertions, 2 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 @@ -12,2 +12,3 @@ #include "viewmail.h" +#include "abstractmail.h" @@ -132,3 +133,2 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int case 1: - qDebug( QString( "Test selected" ).arg( ( ( AttachItem* )item )->Partnumber() ) ); @@ -137,3 +137,3 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int } else { - browser->setText( ( m_body.Parts()[( ( AttachItem* )item )->Partnumber() ] ).Identifier() ); + browser->setText( m_recMail.Wrapper()->fetchPart( m_recMail, m_body.Parts()[ ( ( AttachItem* )item )->Partnumber() ] ) ); } @@ -147,2 +147,4 @@ void ViewMail::setMail( RecMail mail ) { +m_recMail = mail; + m_mail[0] = mail.getFrom(); 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 @@ -47,2 +47,3 @@ private: RecBody m_body; + RecMail m_recMail; |