Bug 229486

Summary: mail selection not updated correctly when deleting mails
Product: [Applications] kmail Reporter: kde
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bjoern
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description kde 2010-03-05 05:15:37 UTC
Version:            (using KDE 4.4.1)
Compiler:          gcc version 4.4.3  
OS:                Linux
Installed from:    Gentoo Packages

When you delete emails the "current" email entry is not updated correctly.
To reproduce:
* you need a folder with a few emails to delete
* select the 3rd or 4th email
* shift-select the 1st email
* hit delete
the new first email is highlighted and displayed
* shift-select another email (eg. 6th)and you have highlighted the first messages and the 4-6th, but not those "in between".
* hitting delete removes all selected mails

Seems like the storage for the "from index" when doing a shift-select is not moved correctly when deleting entries.
probably a simple fix: if active entry is deleted and new highlight is set, set "from selection" as well.
Maybe this applies to other apps as well. Not sure where this kind of list is used.
Comment 1 Björn Ruberg 2010-03-10 23:55:38 UTC

*** This bug has been marked as a duplicate of bug 202071 ***