Bug 300751 - 'Move Messages to Folder' dialog should set scroll position to already selected folder
Summary: 'Move Messages to Folder' dialog should set scroll position to already select...
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 4.9.2
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-28 11:37 UTC by Elias Probst
Modified: 2013-06-26 09:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.5


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2012-05-28 11:37:47 UTC
When opening the 'Move Messages to Folder' dialog, the previously used folder is pre-selected so no typing will be needed when moving to this folder.

Unfortunately the folderlist doesn't also scroll to the position of the preselected folder, so one has to scroll through the list first to see which folder is pre-selected or just type again to filter the list and select a folder.

The list of folders should set the initial scroll position to the pre-selected folder (if there's a pre-selected folder).

How to reproduce:
1. Select one or more mails
2. Type 'm' to open the 'Move Messages to Folder' dialog
3. Type the name of a folder which is somewhere at the bottom of the list/outside the current view scope
4. Press 'Return' to move the messages to this folder
5. Select some more mails which should be moved to the previous folder
6. Type 'm' again to open the 'Move Messages to Folder' dialog

What is expected?
The folder list is scrolled to the position of the already pre-selected folder.

What happens instead?
The folder list is always scrolled to the very top, making it unclear which folder might be pre-selected.
Comment 1 Elias Probst 2012-05-28 13:02:32 UTC
It looks like this only happens when restarting KMail between 4. and 5..
Comment 2 Rolf Eike Beer 2012-10-27 14:00:43 UTC
Confirmed, especially comment #1.

Raising version to 4.9.2 as it's in there, too, but it has been that way at least in 4.8 days.
Comment 3 Laurent Montel 2012-10-27 22:05:07 UTC
Ok will look at it soon.
Comment 4 Elias Probst 2012-10-28 10:12:16 UTC
Another issue with this dialog, of which I don't know, whether it is related to the reported bug or whether I should make a 2nd bug out of it:

Very often, when filtering for a folder, the folder isn't selected but instead I have to put the focus onto the filter list using Arrow-Right or a mouseclick. This happens even in cases, when there's only 1 matching folder in the list.
Comment 5 Bernd Oliver Sünderhauf 2012-11-25 01:27:21 UTC
@Elias: Creating a separate ticket for every bug, even if they might be connected, is best. You can still comment stating: "See also Bug #xxxxxxx. Might they be connected?"
This ensures the second aspect isn't buried and within a long list of comments and finally forgotten. However, sometimes I don't pay regard to that either, and in this case it might not be that important.
Comment 6 Aurelien Gateau 2013-06-25 10:03:30 UTC
Git commit e02a7c54c3015a2dc3d10d408cf9f448890d1f7f by Aurélien Gâteau.
Committed on 24/06/2013 at 12:54.
Pushed by gateau into branch 'master'.

Scroll folder tree to selected folder at startup
FIXED-IN: 4.11.0

M  +2    -0    mailcommon/folder/folderselectiondialog.cpp

http://commits.kde.org/kdepim/e02a7c54c3015a2dc3d10d408cf9f448890d1f7f
Comment 7 Aurelien Gateau 2013-06-26 09:28:31 UTC
Git commit 5550b1422d60584122e7e9eed9b34e3eabf11c33 by Aurélien Gâteau.
Committed on 24/06/2013 at 12:54.
Pushed by gateau into branch 'KDE/4.10'.

Scroll folder tree to selected folder at startup
FIXED-IN: 4.10.5

M  +2    -0    mailcommon/folderselectiondialog.cpp

http://commits.kde.org/kdepim/5550b1422d60584122e7e9eed9b34e3eabf11c33