summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/mainwindow.cpp4
-rw-r--r--noncore/net/mail/viewmail.cpp7
2 files changed, 6 insertions, 5 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
@@ -82,7 +82,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
layout->addWidget( folderView );
mailView = new QListView( view );
- mailView->addColumn( tr( "Status" ) );
+ mailView->addColumn( tr( "" ) );
mailView->addColumn( tr( "Subject" ),QListView::Manual );
mailView->addColumn( tr( "Sender" ),QListView::Manual );
mailView->addColumn( tr( "Date" ));
@@ -100,7 +100,7 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
connect(folderView,SIGNAL(refreshMailview(QList<RecMail>*)),this,SLOT(refreshMailView(QList<RecMail>*)));
- QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) );
+ QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) );
}
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
@@ -112,7 +112,7 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int
if ( item->text( 0 ).left( 4 ) == "text" ) {
menu->insertItem( tr( "Show Text" ), 1 );
}
- menu->insertItem( tr( "Save Attachemt" ), 0 );
+ menu->insertItem( tr( "Save Attachment" ), 0 );
menu->insertSeparator(1);
ret = menu->exec( point, 0 );
@@ -125,17 +125,18 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int
"/", item->text( 1 ) , types, 0 );
if( !str.isEmpty() ) {
- qDebug( " first we will need a MIME wrapper" );
+ qDebug( "first we will need a MIME wrapper" );
}
}
break ;
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;
}