From 79bca648a80c42d5dc7e7674b251715292db33b3 Mon Sep 17 00:00:00 2001 From: alwin Date: Sat, 03 Jan 2004 02:15:10 +0000 Subject: mail attachments will be displayed in order of attachment not sorted --- (limited to 'noncore/net/mail') diff --git a/noncore/net/mail/viewmail.cpp b/noncore/net/mail/viewmail.cpp index 5e7ffeb..d4c5150 100644 --- a/noncore/net/mail/viewmail.cpp +++ b/noncore/net/mail/viewmail.cpp @@ -148,6 +148,7 @@ for (unsigned int i = 0; i < body.Parts().count();++i) { if (parentItem) { 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()); } @@ -246,7 +247,7 @@ ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl) connect( attachments, SIGNAL( clicked ( QListViewItem *, const QPoint & , int ) ), SLOT( slotItemClicked( QListViewItem *, const QPoint & , int ) ) ); readConfig(); - + attachments->setSorting(-1); } void ViewMail::readConfig() { -- cgit v0.9.0.2