[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_2_BRANCH: kdepim/kmail
From:       Till Adam <adam () kde ! org>
Date:       2004-02-12 7:33:31
Message-ID: 20040212073331.164219191 () office ! kde ! org
[Download RAW message or body]

CVS commit by tilladam: 

Backport from HEAD of:

CVS commit by tilladam: 

Make sure that when the user clicks on a column header to resort the 
headers listview the .sorted file is invalidated and a new one generated, 
because newly arriving mail triggering a reload of the list view will 
result in a re-lapse to the sort order active on folder entry. Same goes
for a reload triggered by a config dialog apply/ok.


  M +6 -0      kmheaders.cpp   1.605.2.1


--- kdepim/kmail/kmheaders.cpp  #1.605:1.605.2.1
@@ -2654,4 +2654,10 @@ void KMHeaders::setSorting( int column, 
   KListView::setSorting( column, ascending );
   ensureCurrentItemVisible();
+  // Make sure the config and .sorted file are updated, otherwise stale info
+  // is read on new imap mail. ( folder->folderComplete() -> readSortOrder() ).
+  if ( mFolder ) {
+    writeFolderConfig();
+    writeSortOrder();
+  }
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic