summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/viewmail.cpp3
1 files changed, 2 insertions, 1 deletions
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
@@ -145,12 +145,13 @@ for (unsigned int i = 0; i < body.Parts().count();++i) {
145 o << s << " " << q << "Byte"; 145 o << s << " " << q << "Byte";
146 desc = body.Parts()[i].Description(); 146 desc = body.Parts()[i].Description();
147 parentItem = searchParent(body.Parts()[i].Positionlist()); 147 parentItem = searchParent(body.Parts()[i].Positionlist());
148 if (parentItem) { 148 if (parentItem) {
149 curItem=new AttachItem(parentItem,curItem,type,desc,filename,fsize,i,body.Parts()[i].Positionlist()); 149 curItem=new AttachItem(parentItem,curItem,type,desc,filename,fsize,i,body.Parts()[i].Positionlist());
150 attachments->setRootIsDecorated(true); 150 attachments->setRootIsDecorated(true);
151 curItem = parentItem;
151 } else { 152 } else {
152 curItem=new AttachItem(attachments,curItem,type,desc,filename,fsize,i,body.Parts()[i].Positionlist()); 153 curItem=new AttachItem(attachments,curItem,type,desc,filename,fsize,i,body.Parts()[i].Positionlist());
153 } 154 }
154} 155}
155} 156}
156 157
@@ -243,13 +244,13 @@ ViewMail::ViewMail( QWidget *parent, const char *name, WFlags fl)
243 connect( showHtml, SIGNAL( toggled( bool ) ), SLOT( slotShowHtml( bool ) ) ); 244 connect( showHtml, SIGNAL( toggled( bool ) ), SLOT( slotShowHtml( bool ) ) );
244 245
245 attachments->setEnabled(m_gotBody); 246 attachments->setEnabled(m_gotBody);
246 connect( attachments, SIGNAL( clicked ( QListViewItem *, const QPoint & , int ) ), SLOT( slotItemClicked( QListViewItem *, const QPoint & , int ) ) ); 247 connect( attachments, SIGNAL( clicked ( QListViewItem *, const QPoint & , int ) ), SLOT( slotItemClicked( QListViewItem *, const QPoint & , int ) ) );
247 248
248 readConfig(); 249 readConfig();
249 250 attachments->setSorting(-1);
250} 251}
251 252
252void ViewMail::readConfig() { 253void ViewMail::readConfig() {
253 Config cfg( "mail" ); 254 Config cfg( "mail" );
254 cfg.setGroup( "Settings" ); 255 cfg.setGroup( "Settings" );
255 m_showHtml = cfg.readBoolEntry( "showHtml", false ); 256 m_showHtml = cfg.readBoolEntry( "showHtml", false );