[Kde-pim] messagelist folder switching

David Faure faure at kde.org
Tue May 14 00:03:30 BST 2013


On Tuesday 14 May 2013 00:46:54 David Faure wrote:
>  I'm not sure what the next step is, though. How to switch to 
> another folder in the messagelist. setRootIndex()?

Actually the code for that is also already there: Pane::setCurrentFolder()

It turns out that my problems are made worse by using the favorites view.
When clicking on a folder there, it selects it in the folder tree, but doesn't 
end up calling Pane::setCurrentFolder().

Not that it works when using the folder tree either, 
MessageList::Core::Manager::savePreSelectedMessageForStorageModelId is called 
too late, after all the messages have been removed, probably as a result of my 
speed optimization (deselect before select, i.e. clear before insert). Which 
again comes back to "can I get rid of the selectionproxymodel", then this 
won't happen anymore.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list