author | harlekin <harlekin> | 2003-12-13 22:17:45 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-13 22:17:45 (UTC) |
commit | f1fa9ca873169e803fcc28cecd756a3edaa30ec4 (patch) (side-by-side diff) | |
tree | 6e1f14694056c341427475d9fdddac1b9dcf99a7 /noncore/net/mail | |
parent | 8290f1a524b6f0051e49f8045d24e508d46868e2 (diff) | |
download | opie-f1fa9ca873169e803fcc28cecd756a3edaa30ec4.zip opie-f1fa9ca873169e803fcc28cecd756a3edaa30ec4.tar.gz opie-f1fa9ca873169e803fcc28cecd756a3edaa30ec4.tar.bz2 |
make sure the wrapper pointer is not Ol
-rw-r--r-- | noncore/net/mail/mainwindow.cpp | 2 | ||||
-rw-r--r-- | noncore/net/mail/viewmail.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/noncore/net/mail/mainwindow.cpp b/noncore/net/mail/mainwindow.cpp index 560715c..8ef7ddd 100644 --- a/noncore/net/mail/mainwindow.cpp +++ b/noncore/net/mail/mainwindow.cpp @@ -83,5 +83,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) mailView = new QListView( view ); - mailView->addColumn( tr( "Status" ) ); + mailView->addColumn( tr( "" ) ); mailView->addColumn( tr( "Subject" ),QListView::Manual ); mailView->addColumn( tr( "Sender" ),QListView::Manual ); 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 @@ -113,5 +113,5 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int menu->insertItem( tr( "Show Text" ), 1 ); } - menu->insertItem( tr( "Save Attachemt" ), 0 ); + menu->insertItem( tr( "Save Attachment" ), 0 ); menu->insertSeparator(1); @@ -132,10 +132,11 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int case 1: - qDebug( QString( "Test selected" ).arg( ( ( AttachItem* )item )->Partnumber() ) ); if ( ( ( AttachItem* )item )->Partnumber() == -1 ) { setText(); } 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; } |