[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#561779: Markers for range selections not updated as necessary



package: kmail
version: 4:4.3.2-1
severity: critical

After several operations on a folder the marker for the currently selected 
message is not updated correctly. It seems that there are actually two 
markers, one for the GUI, which is handled correctly, and one for internal 
uses, which isn't. The latter one seems to be an index which isn't updated in 
several cases.


Example:
 * Select the first mail in a folder.
 * Now change the sorting order.
 * The previously selected message is still highlighted by the GUI, let's 
assume that it now is at position 6 in the list of messages.
 * Hold the shift key and click on the message at position 3 in the list.

At this point now, I would expect that messages at the position 3, 4, 5, 6 are 
highlighted. Instead, messages at position 1, 2, 3 are highlighted, while the 
highlight on position 6 is removed.

Similarly, when deleting mails the first following mail is highlighted by the 
GUI while the internal index isn't.


Concerning the severity and why this is not just an annoyance, the reason is 
that it is not always obvious what is going on when the start of the selection 
range isn't visible. I was just cleaning up some old mails and there was one 
from a source which I don't care for any more. I selected that, changed the 
selection to "sort by author", scrolled down the list, shift-selected the last 
of them and deleted them. Since the start of the selection remained close to 
the beginning of the whole folder, far out of view, this just cost me a few 
hundred mails.


Uli



Reply to: