author | alwin <alwin> | 2005-03-09 14:59:26 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-09 14:59:26 (UTC) |
commit | 8e618d7a6d195cb737946e89370d5c60f92e8f86 (patch) (side-by-side diff) | |
tree | a4cfada2c0420fb40c483ace4dc2a6fce4258d6a | |
parent | 84f237fb3b83400a031bf7c2d3025f78c02f28a8 (diff) | |
download | opie-8e618d7a6d195cb737946e89370d5c60f92e8f86.zip opie-8e618d7a6d195cb737946e89370d5c60f92e8f86.tar.gz opie-8e618d7a6d195cb737946e89370d5c60f92e8f86.tar.bz2 |
small bugfix
-rw-r--r-- | noncore/net/mail/viewmail.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/net/mail/viewmail.cpp b/noncore/net/mail/viewmail.cpp index 5206220..a89393c 100644 --- a/noncore/net/mail/viewmail.cpp +++ b/noncore/net/mail/viewmail.cpp @@ -183,32 +183,33 @@ void ViewMail::setBody(const RecBodyP&body ) if (temp) curItem = temp; curItem=new AttachItem(parentItem,curItem,type,desc,filename,fsize,i,body->Parts()[i]->Positionlist()); attachments->setRootIsDecorated(true); curItem = parentItem; } else { curItem=new AttachItem(attachments,curItem,type,desc,filename,fsize,i,body->Parts()[i]->Positionlist()); } } } void ViewMail::slotShowHtml( bool state ) { m_showHtml = state; + m_lasttextpart=-2; setMainText(); } void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int ) { if (!item ) return; if ( ( ( AttachItem* )item )->Partnumber() == -1 ) { setMainText(); return; } QPopupMenu *menu = new QPopupMenu(); int ret=0; @@ -318,32 +319,33 @@ void ViewMail::slotItemClicked( QListViewItem * item , const QPoint & point, int void ViewMail::setMail(const RecMailP&mail ) { m_recMail = mail; m_mail[0] = mail->getFrom(); m_mail[1] = mail->getSubject(); m_mail[3] = mail->getStringDate(); m_mail[4] = mail->Msgid(); m_mail2[0] = mail->To(); m_mail2[1] = mail->CC(); m_mail2[2] = mail->Bcc(); setCaption(tr("E-Mail by %1").arg( m_mail[0] ) ); + m_lasttextpart=-2; setMainText(); } ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl) : ViewMailBase(parent, name, fl), _inLoop(false) { m_gotBody = false; deleted = false; connect( reply, SIGNAL(activated()), SLOT(slotReply())); connect( forward, SIGNAL(activated()), SLOT(slotForward())); connect( deleteMail, SIGNAL( activated() ), SLOT( slotDeleteMail() ) ); connect( showHtml, SIGNAL( toggled(bool) ), SLOT( slotShowHtml(bool) ) ); connect( showPicsInline, SIGNAL( toggled(bool) ), SLOT( slotImageInline(bool) ) ); |