Bug 272417 - Kmail alwasy shows the topmost Message in a Folder
Summary: Kmail alwasy shows the topmost Message in a Folder
Status: RESOLVED FIXED
Alias: None
Product: kdepim
Classification: Applications
Component: messagelist (show other bugs)
Version: 4.6
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-04 09:58 UTC by Stephan Augustin
Modified: 2011-05-20 21:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Augustin 2011-05-04 09:58:51 UTC
Version:           4.6 beta5 (using KDE 4.6.2) 
OS:                MS Windows

If i choose "newest Message at top", everything works fine. If I change the behaviour to "newest Message at Bottom", i always get shown the oldest ( topmost) Message in the Folder

Reproducible: Always

Steps to Reproduce:
Ansicht - Nachrichtenliste - Sortierung - älteste oben


Expected Results:  
Move the slide-bar to the bottom, so that i get the newest Message in view
Comment 1 Torgny Nyblom 2011-05-04 14:09:18 UTC
I'd say that the "bug" is no bug but a manifestation off a bug where the last selected message is not shown (if enabled in options) if that is the case here.
Comment 2 Andre Heinecke 2011-05-20 21:22:50 UTC
Git commit bbe8d3602c27acdfcdbba8c95156b4bdb7a19fb4 by Andre Heinecke.
Committed on 19/05/2011 at 15:27.
Pushed by aheinecke into branch 'master'.

Fix LastMessage Selection.

    The id of the storagmodel is not constant over the lifecycle
    of a storagemodel. Immediatly after something new is selected
    in the selectionmodel the id's change to the new selection.
    This caused the messagelist manager to save the last selected
    message not for the colletions that were selected
    but for the collections about to be selected.
    Since the messageId then did not exist in the newly selected
    collection the messageId of the lastselected message was discarded.

    BUG: 272417

M  +3    -3    messagelist/core/manager.cpp     
M  +1    -1    messagelist/core/manager.h     
M  +4    -2    messagelist/core/widgetbase.cpp     

http://commits.kde.org/kdepim/bbe8d3602c27acdfcdbba8c95156b4bdb7a19fb4
Comment 3 Andre Heinecke 2011-05-20 21:40:26 UTC
Git commit 18b12ea4a59f296cfb3e4bf83acc5487018030dc by Andre Heinecke.
Committed on 19/05/2011 at 15:27.
Pushed by aheinecke into branch '4.6'.

Fix LastMessage Selection.

    The id of the storagmodel is not constant over the lifecycle
    of a storagemodel. Immediatly after something new is selected
    in the selectionmodel the id's change to the new selection.
    This caused the messagelist manager to save the last selected
    message not for the colletions that were selected
    but for the collections about to be selected.
    Since the messageId then did not exist in the newly selected
    collection the messageId of the lastselected message was discarded.

    BUG: 272417

M  +3    -3    messagelist/core/manager.cpp     
M  +1    -1    messagelist/core/manager.h     
M  +4    -2    messagelist/core/widgetbase.cpp     

http://commits.kde.org/kdepim/18b12ea4a59f296cfb3e4bf83acc5487018030dc