After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 708682 - Move with 'End' key with collapsed threads fails
Move with 'End' key with collapsed threads fails
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.10.x (obsolete)
Other Linux
: Normal critical
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on: 702006
Blocks:
 
 
Reported: 2013-09-24 13:28 UTC by Milan Crha
Modified: 2013-09-30 16:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evo patch (724 bytes, patch)
2013-09-24 14:23 UTC, Milan Crha
committed Details | Review

Description Milan Crha 2013-09-24 13:28:52 UTC
Moving this from a downstream bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1010763

When my messages are grouped by threads, and the threads are closed, I cannot use the end key to get to the latest message thread. It works just fine if I expand all my threads. This is sort of a regression. I'm quite sure I could use the end key to get the the latest message irrespective of whether my threads were open or closed in F19.

Version-Release number of selected component (if applicable):
[asinha@ankur  ~]$ rpm -qa \*evolution\*
evolution-3.9.92-1.fc20.x86_64
evolution-data-server-3.9.92-1.fc20.x86_64
evolution-ews-3.9.92-1.fc20.x86_64
[asinha@ankur  ~]$

How reproducible:
Always

Steps to Reproduce:
1.Collapse threads
2.Hit "end" key to go to latest message/thread
3.

Actual results:
Nothing happens. No movement at all.

Expected results:
Should go to latest thread, or lowest in the view depending on how it's sorted.

Additional info:
A one key "go to latest message/thread" is really handy :)

-------------------------------------------------------------------------

In my F20 system here, the end key does not go to the last row (either last shown or last in the folder) if the threads are collapsed. The thread isn't supposed to be expanded on it's own. The bug is that the end key doesn't do *anything* when threads are collapsed.
Comment 1 Milan Crha 2013-09-24 14:18:54 UTC
This is caused by a fix for bug #702006.
Comment 2 Milan Crha 2013-09-24 14:23:19 UTC
Created attachment 255624 [details] [review]
evo patch

for evolution;

This returns back the relevant part. I tested it, and I do not see count issues in the mail view.

Matthew, by any chance, do you recall where you saw this count misbehaviour, or what led you to change this particular function, please?
Comment 3 Matthew Barnes 2013-09-24 14:35:46 UTC
It was for bug 702006.

To resolve this without regressing either bug, I think ESelectionModel needs to have separate row_count() and visible_row_count() methods.

For ETableSelectionModel the methods are equivalent, but for ETreeSelectionModel the row_count() method should include collapsed rows in its count.
Comment 4 Milan Crha 2013-09-25 07:15:03 UTC
(In reply to comment #2)
> Matthew, by any chance, do you recall where you saw this count misbehaviour, or
> what led you to change this particular function, please?

^^^ I didn't notice the count misbehaviour in the mail view, thus I'm wondering where you saw it, and/or why you did the change in this part.
Comment 5 Milan Crha 2013-09-30 16:30:36 UTC
I retested the change and I do not see any regression in message counts, thus I moved ahead and committed the change.

Created commit 69e3c86 in evo master (3.11.1+)
Created commit 1964f92 in evo gnome-3-10 (3.10.1+)