-rw-r--r-- | noncore/net/mail/viewmail.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/net/mail/viewmail.cpp b/noncore/net/mail/viewmail.cpp index a73dac5..42707e3 100644 --- a/noncore/net/mail/viewmail.cpp +++ b/noncore/net/mail/viewmail.cpp @@ -114,3 +114,3 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int } - menu->insertItem( tr( "Save Attachemt" ), 0 ); + menu->insertItem( tr( "Save Attachment" ), 0 ); menu->insertSeparator(1); @@ -133,3 +133,2 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int case 1: - qDebug( QString( "Test selected" ).arg( ( ( AttachItem* )item )->Partnumber() ) ); if ( ( ( AttachItem* )item )->Partnumber() == -1 ) { @@ -137,4 +136,6 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int } else { + if ( m_recMail.Wrapper() != 0l ) { // make sure that there is a wrapper , even after delete or simular actions browser->setText( m_recMail.Wrapper()->fetchPart( m_recMail, m_body.Parts()[ ( ( AttachItem* )item )->Partnumber() ] ) ); } + } break; |