Diffstat (limited to 'noncore/net/mail/accountview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/accountview.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/net/mail/accountview.cpp b/noncore/net/mail/accountview.cpp index ac4f0e0..847b099 100644 --- a/noncore/net/mail/accountview.cpp +++ b/noncore/net/mail/accountview.cpp @@ -71,6 +71,7 @@ void IMAPviewItem::refresh(QList<RecMail>&) Folder *it; + QListViewItem*item = 0; for ( it = folders->first(); it; it = folders->next() ) { - (void) new IMAPfolderItem( it, this ); + item = new IMAPfolderItem( it, this , item ); } } @@ -86,6 +87,6 @@ IMAPfolderItem::~IMAPfolderItem() } -IMAPfolderItem::IMAPfolderItem( Folder *folderInit, IMAPviewItem *parent ) - : AccountViewItem( parent ) +IMAPfolderItem::IMAPfolderItem( Folder *folderInit, IMAPviewItem *parent , QListViewItem*after ) + : AccountViewItem( parent,after ) { folder = folderInit; @@ -114,4 +115,5 @@ AccountView::AccountView( QWidget *parent, const char *name, WFlags flags ) connect( this, SIGNAL( clicked( QListViewItem * ) ), SLOT( refresh( QListViewItem * ) ) ); + setSorting(-1); } |